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 —
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) -> 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 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 dangerous to use with Aeron/AeronContext/AeronPublication/AeronSubscription More intended for AeronArchiveRecordingDescriptor (note strings will not work as its a shallow copy)