pub struct AeronArchiveReplicationParamsOwned { /* private fields */ }Expand description
AeronArchiveReplicationParams plus the string storage its C struct points into.
The C params struct stores raw char * pointers, so the strings must outlive it,
so this wrapper owns them. Deref gives the params for archive.replicate(...).
Methods from Deref<Target = AeronArchiveReplicationParams>§
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) -> Ref<'_, 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
Sourcepub unsafe fn get_inner_mut(&self) -> &mut aeron_archive_replication_params_t
pub unsafe fn get_inner_mut(&self) -> &mut aeron_archive_replication_params_t
Mutable access to the underlying C struct, minted from &self: nothing
prevents two live &mut at once, so the caller must ensure exclusive
access for the lifetime of the returned reference.
§Safety
No other reference (& or &mut) to the underlying struct may be
alive while the returned &mut is in use.
pub fn get_inner_ref(&self) -> &aeron_archive_replication_params_t
Sourcepub unsafe fn clone_struct(&self) -> Self
pub unsafe fn clone_struct(&self) -> Self
Copies the underlying struct into a new heap allocation
Only for plain data structs with no init or clean-up functions, so not for Aeron, AeronContext, AeronPublication or AeronSubscription
§Safety
Number fields are copied, but pointer fields (strings, buffers, other
structs) still point at the source’s memory. Do not read them, including
via Debug, once that memory is freed. For a callback argument that is
when the callback returns. Copy strings out with .to_owned() instead