pub struct AeronArchiveReplicationParams { /* private fields */ }
Expand description
Struct containing the available replication parameters.
Implementations§
Source§impl AeronArchiveReplicationParams
impl AeronArchiveReplicationParams
pub fn new( stop_position: i64, dst_recording_id: i64, live_destination: &str, replication_channel: &str, src_response_channel: &str, channel_tag_id: i64, subscription_tag_id: i64, file_io_max_length: i32, replication_session_id: i32, encoded_credentials: &AeronArchiveEncodedCredentials, ) -> Result<Self, AeronCError>
Sourcepub fn new_zeroed() -> Result<Self, AeronCError>
pub fn new_zeroed() -> Result<Self, AeronCError>
creates zeroed struct where the underlying c struct is on the heap
pub fn stop_position(&self) -> i64
pub fn dst_recording_id(&self) -> i64
pub fn live_destination(&self) -> &str
pub fn replication_channel(&self) -> &str
pub fn src_response_channel(&self) -> &str
pub fn channel_tag_id(&self) -> i64
pub fn subscription_tag_id(&self) -> i64
pub fn file_io_max_length(&self) -> i32
pub fn replication_session_id(&self) -> i32
pub fn encoded_credentials(&self) -> AeronArchiveEncodedCredentials
Sourcepub fn init(&self) -> Result<i32, AeronCError>
pub fn init(&self) -> Result<i32, AeronCError>
Initialize an AeronArchiveReplicationParams
with the default values
pub fn get_inner(&self) -> *mut aeron_archive_replication_params_t
Source§impl AeronArchiveReplicationParams
impl AeronArchiveReplicationParams
Sourcepub fn clone_struct(&self) -> Self
pub fn clone_struct(&self) -> Self
Regular clone just increases the reference count of underlying count.
clone_struct
shallow copies the content of the underlying struct on heap.
NOTE: if the struct has references to other structs these will not be copied
Must be only used on structs which has no init/clean up methods. So its danagerous to use with Aeron/AeronContext/AeronPublication/AeronSubscription More intended for AeronArchiveRecordingDescriptor
Trait Implementations§
Source§impl Clone for AeronArchiveReplicationParams
impl Clone for AeronArchiveReplicationParams
Source§fn clone(&self) -> AeronArchiveReplicationParams
fn clone(&self) -> AeronArchiveReplicationParams
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for AeronArchiveReplicationParams
impl Default for AeronArchiveReplicationParams
This will create an instance where the struct is zeroed, use with care
Source§impl From<&AeronArchiveReplicationParams> for *mut aeron_archive_replication_params_t
impl From<&AeronArchiveReplicationParams> for *mut aeron_archive_replication_params_t
Source§fn from(value: &AeronArchiveReplicationParams) -> Self
fn from(value: &AeronArchiveReplicationParams) -> Self
Converts to this type from the input type.
Source§impl From<*const aeron_archive_replication_params_stct> for AeronArchiveReplicationParams
impl From<*const aeron_archive_replication_params_stct> for AeronArchiveReplicationParams
Source§fn from(value: *const aeron_archive_replication_params_t) -> Self
fn from(value: *const aeron_archive_replication_params_t) -> Self
Converts to this type from the input type.
Source§impl From<*mut aeron_archive_replication_params_stct> for AeronArchiveReplicationParams
impl From<*mut aeron_archive_replication_params_stct> for AeronArchiveReplicationParams
Source§fn from(value: *mut aeron_archive_replication_params_t) -> Self
fn from(value: *mut aeron_archive_replication_params_t) -> Self
Converts to this type from the input type.
Source§impl From<AeronArchiveReplicationParams> for *mut aeron_archive_replication_params_t
impl From<AeronArchiveReplicationParams> for *mut aeron_archive_replication_params_t
Source§fn from(value: AeronArchiveReplicationParams) -> Self
fn from(value: AeronArchiveReplicationParams) -> Self
Converts to this type from the input type.
Source§impl From<AeronArchiveReplicationParams> for aeron_archive_replication_params_t
impl From<AeronArchiveReplicationParams> for aeron_archive_replication_params_t
Source§fn from(value: AeronArchiveReplicationParams) -> Self
fn from(value: AeronArchiveReplicationParams) -> Self
Converts to this type from the input type.
Source§impl From<aeron_archive_replication_params_stct> for AeronArchiveReplicationParams
impl From<aeron_archive_replication_params_stct> for AeronArchiveReplicationParams
Source§fn from(value: aeron_archive_replication_params_t) -> Self
fn from(value: aeron_archive_replication_params_t) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AeronArchiveReplicationParams
impl !RefUnwindSafe for AeronArchiveReplicationParams
impl !Send for AeronArchiveReplicationParams
impl !Sync for AeronArchiveReplicationParams
impl Unpin for AeronArchiveReplicationParams
impl !UnwindSafe for AeronArchiveReplicationParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more