Struct rusteron_archive::AeronArchiveContext
source · pub struct AeronArchiveContext { /* private fields */ }
Implementations§
source§impl AeronArchiveContext
impl AeronArchiveContext
pub fn aeron_archive_async_connect( &self, ) -> Result<AeronArchiveAsyncConnect, AeronCError>
source§impl AeronArchiveContext
impl AeronArchiveContext
sourcepub fn new() -> Result<Self, AeronCError>
pub fn new() -> Result<Self, AeronCError>
Create an AeronArchiveContext
struct.
sourcepub fn close(&self) -> Result<i32, AeronCError>
pub fn close(&self) -> Result<i32, AeronCError>
Close and delete the AeronArchiveContext
struct.
sourcepub fn set_aeron(&self, aeron: &Aeron) -> Result<i32, AeronCError>
pub fn set_aeron(&self, aeron: &Aeron) -> Result<i32, AeronCError>
Specify the client used for communicating with the local Media Driver.
This client will be closed with the AeronArchive
is closed if aeron_archive_context_set_owns_aeron_client is true.
pub fn get_aeron(&self) -> Aeron
sourcepub fn set_owns_aeron_client(
&self,
owns_aeron_client: bool,
) -> Result<i32, AeronCError>
pub fn set_owns_aeron_client( &self, owns_aeron_client: bool, ) -> Result<i32, AeronCError>
Specify whether or not this context owns the client and, therefore, takes responsibility for closing it.
pub fn get_owns_aeron_client(&self) -> bool
sourcepub fn set_aeron_directory_name(
&self,
aeron_directory_name: &str,
) -> Result<i32, AeronCError>
pub fn set_aeron_directory_name( &self, aeron_directory_name: &str, ) -> Result<i32, AeronCError>
Specify the top level Aeron directory used for communication between the Aeron client and the Media Driver.
pub fn get_aeron_directory_name(&self) -> &str
sourcepub fn set_control_request_channel(
&self,
control_request_channel: &str,
) -> Result<i32, AeronCError>
pub fn set_control_request_channel( &self, control_request_channel: &str, ) -> Result<i32, AeronCError>
Specify the channel used for sending requests to the Aeron Archive.
pub fn get_control_request_channel(&self) -> &str
sourcepub fn set_control_request_stream_id(
&self,
control_request_stream_id: i32,
) -> Result<i32, AeronCError>
pub fn set_control_request_stream_id( &self, control_request_stream_id: i32, ) -> Result<i32, AeronCError>
Specify the stream used for sending requests to the Aeron Archive.
pub fn get_control_request_stream_id(&self) -> i32
sourcepub fn set_control_response_channel(
&self,
control_response_channel: &str,
) -> Result<i32, AeronCError>
pub fn set_control_response_channel( &self, control_response_channel: &str, ) -> Result<i32, AeronCError>
Specify the channel used for receiving responses from the Aeron Archive.
pub fn get_control_response_channel(&self) -> &str
sourcepub fn set_control_response_stream_id(
&self,
control_response_stream_id: i32,
) -> Result<i32, AeronCError>
pub fn set_control_response_stream_id( &self, control_response_stream_id: i32, ) -> Result<i32, AeronCError>
Specify the stream used for receiving responses from the Aeron Archive.
pub fn get_control_response_stream_id(&self) -> i32
sourcepub fn set_message_timeout_ns(
&self,
message_timeout_ns: i64,
) -> Result<i32, AeronCError>
pub fn set_message_timeout_ns( &self, message_timeout_ns: i64, ) -> Result<i32, AeronCError>
Specify the message timeout, in nanoseconds, to wait for sending or receiving a message.
pub fn get_message_timeout_ns(&self) -> i64
sourcepub fn set_idle_strategy<AeronIdleStrategyFuncHandlerImpl: AeronIdleStrategyFuncCallback>(
&self,
idle_strategy_func: Option<&Handler<AeronIdleStrategyFuncHandlerImpl>>,
) -> Result<i32, AeronCError>
pub fn set_idle_strategy<AeronIdleStrategyFuncHandlerImpl: AeronIdleStrategyFuncCallback>( &self, idle_strategy_func: Option<&Handler<AeronIdleStrategyFuncHandlerImpl>>, ) -> Result<i32, AeronCError>
Specify the idle strategy function and associated state used by the client between polling calls.
sourcepub fn set_credentials_supplier<AeronArchiveCredentialsFreeFuncHandlerImpl: AeronArchiveCredentialsFreeFuncCallback>(
&self,
encoded_credentials: aeron_archive_credentials_encoded_credentials_supplier_func_t,
on_challenge: aeron_archive_credentials_challenge_supplier_func_t,
on_free: Option<&Handler<AeronArchiveCredentialsFreeFuncHandlerImpl>>,
) -> Result<i32, AeronCError>
pub fn set_credentials_supplier<AeronArchiveCredentialsFreeFuncHandlerImpl: AeronArchiveCredentialsFreeFuncCallback>( &self, encoded_credentials: aeron_archive_credentials_encoded_credentials_supplier_func_t, on_challenge: aeron_archive_credentials_challenge_supplier_func_t, on_free: Option<&Handler<AeronArchiveCredentialsFreeFuncHandlerImpl>>, ) -> Result<i32, AeronCError>
Specify the various credentials callbacks to use when connecting to the Aeron Archive.
sourcepub fn set_recording_signal_consumer<AeronArchiveRecordingSignalConsumerFuncHandlerImpl: AeronArchiveRecordingSignalConsumerFuncCallback>(
&self,
on_recording_signal: Option<&Handler<AeronArchiveRecordingSignalConsumerFuncHandlerImpl>>,
) -> Result<i32, AeronCError>
pub fn set_recording_signal_consumer<AeronArchiveRecordingSignalConsumerFuncHandlerImpl: AeronArchiveRecordingSignalConsumerFuncCallback>( &self, on_recording_signal: Option<&Handler<AeronArchiveRecordingSignalConsumerFuncHandlerImpl>>, ) -> Result<i32, AeronCError>
Specify the callback to which recording signals are dispatched while polling for control responses.
sourcepub fn set_error_handler<AeronErrorHandlerHandlerImpl: AeronErrorHandlerCallback>(
&self,
error_handler: Option<&Handler<AeronErrorHandlerHandlerImpl>>,
) -> Result<i32, AeronCError>
pub fn set_error_handler<AeronErrorHandlerHandlerImpl: AeronErrorHandlerCallback>( &self, error_handler: Option<&Handler<AeronErrorHandlerHandlerImpl>>, ) -> Result<i32, AeronCError>
Specify the callback to which errors are dispatched while executing archive client commands.
sourcepub fn set_delegating_invoker<AeronArchiveDelegatingInvokerFuncHandlerImpl: AeronArchiveDelegatingInvokerFuncCallback>(
&self,
delegating_invoker_func: Option<&Handler<AeronArchiveDelegatingInvokerFuncHandlerImpl>>,
) -> Result<i32, AeronCError>
pub fn set_delegating_invoker<AeronArchiveDelegatingInvokerFuncHandlerImpl: AeronArchiveDelegatingInvokerFuncCallback>( &self, delegating_invoker_func: Option<&Handler<AeronArchiveDelegatingInvokerFuncHandlerImpl>>, ) -> Result<i32, AeronCError>
Specify the callback to be invoked in addition to any invoker used by the Aeron instance.
Useful when running in a low thread count environment.
pub fn get_inner(&self) -> *mut aeron_archive_context_t
source§impl AeronArchiveContext
impl AeronArchiveContext
pub fn set_no_credentials_supplier(&self) -> Result<i32, AeronCError>
sourcepub fn new_with_no_credentials_supplier() -> Result<AeronArchiveContext, AeronCError>
pub fn new_with_no_credentials_supplier() -> Result<AeronArchiveContext, AeronCError>
This method creates a new AeronArchiveContext
with a no-op credentials supplier.
If you do not set a credentials supplier, it will segfault.
This method ensures that a non-functional credentials supplier is set to avoid the segfault.
Trait Implementations§
source§impl Clone for AeronArchiveContext
impl Clone for AeronArchiveContext
source§fn clone(&self) -> AeronArchiveContext
fn clone(&self) -> AeronArchiveContext
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AeronArchiveContext
impl Debug for AeronArchiveContext
source§impl Deref for AeronArchiveContext
impl Deref for AeronArchiveContext
source§impl From<&AeronArchiveContext> for *mut aeron_archive_context_t
impl From<&AeronArchiveContext> for *mut aeron_archive_context_t
source§fn from(value: &AeronArchiveContext) -> Self
fn from(value: &AeronArchiveContext) -> Self
source§impl From<*const aeron_archive_context_stct> for AeronArchiveContext
impl From<*const aeron_archive_context_stct> for AeronArchiveContext
source§fn from(value: *const aeron_archive_context_t) -> Self
fn from(value: *const aeron_archive_context_t) -> Self
source§impl From<*mut aeron_archive_context_stct> for AeronArchiveContext
impl From<*mut aeron_archive_context_stct> for AeronArchiveContext
source§fn from(value: *mut aeron_archive_context_t) -> Self
fn from(value: *mut aeron_archive_context_t) -> Self
source§impl From<AeronArchiveContext> for *mut aeron_archive_context_t
impl From<AeronArchiveContext> for *mut aeron_archive_context_t
source§fn from(value: AeronArchiveContext) -> Self
fn from(value: AeronArchiveContext) -> Self
source§impl From<AeronArchiveContext> for aeron_archive_context_t
impl From<AeronArchiveContext> for aeron_archive_context_t
source§fn from(value: AeronArchiveContext) -> Self
fn from(value: AeronArchiveContext) -> Self
source§impl From<aeron_archive_context_stct> for AeronArchiveContext
impl From<aeron_archive_context_stct> for AeronArchiveContext
source§fn from(value: aeron_archive_context_t) -> Self
fn from(value: aeron_archive_context_t) -> Self
Auto Trait Implementations§
impl Freeze for AeronArchiveContext
impl !RefUnwindSafe for AeronArchiveContext
impl !Send for AeronArchiveContext
impl !Sync for AeronArchiveContext
impl Unpin for AeronArchiveContext
impl !UnwindSafe for AeronArchiveContext
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)