Struct rusteron_client::AeronContext
source · pub struct AeronContext { /* private fields */ }
Implementations§
source§impl AeronContext
impl AeronContext
sourcepub fn new() -> Result<Self, AeronCError>
pub fn new() -> Result<Self, AeronCError>
Create a AeronContext
struct and initialize with default values.
§Return
0 for success and -1 for error.
pub fn set_dir(&self, value: &str) -> Result<i32, AeronCError>
pub fn get_dir(&self) -> &str
pub fn set_driver_timeout_ms(&self, value: u64) -> Result<i32, AeronCError>
pub fn get_driver_timeout_ms(&self) -> u64
pub fn set_keepalive_interval_ns(&self, value: u64) -> Result<i32, AeronCError>
pub fn get_keepalive_interval_ns(&self) -> u64
pub fn set_resource_linger_duration_ns( &self, value: u64, ) -> Result<i32, AeronCError>
pub fn get_resource_linger_duration_ns(&self) -> u64
pub fn get_idle_sleep_duration_ns(&self) -> u64
pub fn set_idle_sleep_duration_ns(&self, value: u64) -> Result<i32, AeronCError>
pub fn set_pre_touch_mapped_memory( &self, value: bool, ) -> Result<i32, AeronCError>
pub fn get_pre_touch_mapped_memory(&self) -> bool
pub fn set_client_name(&self, value: &str) -> Result<i32, AeronCError>
pub fn get_client_name(&self) -> &str
pub fn set_error_handler<AeronErrorHandlerHandlerImpl: AeronErrorHandlerCallback>( &self, handler: Option<&Handler<AeronErrorHandlerHandlerImpl>>, ) -> Result<i32, AeronCError>
pub fn get_error_handler(&self) -> aeron_error_handler_t
pub fn get_error_handler_clientd(&self) -> *mut c_void
pub fn set_publication_error_frame_handler<AeronPublicationErrorFrameHandlerHandlerImpl: AeronPublicationErrorFrameHandlerCallback>( &self, handler: Option<&Handler<AeronPublicationErrorFrameHandlerHandlerImpl>>, ) -> Result<i32, AeronCError>
pub fn get_publication_error_frame_handler( &self, ) -> aeron_publication_error_frame_handler_t
pub fn get_publication_error_frame_handler_clientd(&self) -> *mut c_void
pub fn set_on_new_publication<AeronNewPublicationHandlerImpl: AeronNewPublicationCallback>( &self, handler: Option<&Handler<AeronNewPublicationHandlerImpl>>, ) -> Result<i32, AeronCError>
pub fn get_on_new_publication(&self) -> aeron_on_new_publication_t
pub fn get_on_new_publication_clientd(&self) -> *mut c_void
pub fn set_on_new_exclusive_publication<AeronNewPublicationHandlerImpl: AeronNewPublicationCallback>( &self, handler: Option<&Handler<AeronNewPublicationHandlerImpl>>, ) -> Result<i32, AeronCError>
pub fn get_on_new_exclusive_publication(&self) -> aeron_on_new_publication_t
pub fn get_on_new_exclusive_publication_clientd(&self) -> *mut c_void
pub fn set_on_new_subscription<AeronNewSubscriptionHandlerImpl: AeronNewSubscriptionCallback>( &self, handler: Option<&Handler<AeronNewSubscriptionHandlerImpl>>, ) -> Result<i32, AeronCError>
pub fn get_on_new_subscription(&self) -> aeron_on_new_subscription_t
pub fn get_on_new_subscription_clientd(&self) -> *mut c_void
pub fn set_on_available_counter<AeronAvailableCounterHandlerImpl: AeronAvailableCounterCallback>( &self, handler: Option<&Handler<AeronAvailableCounterHandlerImpl>>, ) -> Result<i32, AeronCError>
pub fn get_on_available_counter(&self) -> aeron_on_available_counter_t
pub fn get_on_available_counter_clientd(&self) -> *mut c_void
pub fn set_on_close_client<AeronCloseClientHandlerImpl: AeronCloseClientCallback>( &self, handler: Option<&Handler<AeronCloseClientHandlerImpl>>, ) -> Result<i32, AeronCError>
pub fn get_on_close_client(&self) -> aeron_on_close_client_t
pub fn get_on_close_client_clientd(&self) -> *mut c_void
sourcepub fn set_use_conductor_agent_invoker(
&self,
value: bool,
) -> Result<i32, AeronCError>
pub fn set_use_conductor_agent_invoker( &self, value: bool, ) -> Result<i32, AeronCError>
Whether to use an invoker to control the conductor agent or spawn a thread.
pub fn get_use_conductor_agent_invoker(&self) -> bool
pub fn set_agent_on_start_function<AeronAgentStartFuncHandlerImpl: AeronAgentStartFuncCallback>( &self, value: Option<&Handler<AeronAgentStartFuncHandlerImpl>>, ) -> Result<i32, AeronCError>
pub fn get_agent_on_start_function(&self) -> aeron_agent_on_start_func_t
pub fn get_agent_on_start_state(&self) -> *mut c_void
sourcepub fn close(&self) -> Result<i32, AeronCError>
pub fn close(&self) -> Result<i32, AeronCError>
sourcepub fn request_driver_termination(
directory: &str,
token_buffer: *const u8,
token_length: usize,
) -> Result<i32, AeronCError>
pub fn request_driver_termination( directory: &str, token_buffer: *const u8, token_length: usize, ) -> Result<i32, AeronCError>
pub fn get_inner(&self) -> *mut aeron_context_t
Trait Implementations§
source§impl Clone for AeronContext
impl Clone for AeronContext
source§fn clone(&self) -> AeronContext
fn clone(&self) -> AeronContext
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 Debug for AeronContext
impl Debug for AeronContext
source§impl Deref for AeronContext
impl Deref for AeronContext
source§impl From<&AeronContext> for *mut aeron_context_t
impl From<&AeronContext> for *mut aeron_context_t
source§fn from(value: &AeronContext) -> Self
fn from(value: &AeronContext) -> Self
Converts to this type from the input type.
source§impl From<*const aeron_context_stct> for AeronContext
impl From<*const aeron_context_stct> for AeronContext
source§fn from(value: *const aeron_context_t) -> Self
fn from(value: *const aeron_context_t) -> Self
Converts to this type from the input type.
source§impl From<*mut aeron_context_stct> for AeronContext
impl From<*mut aeron_context_stct> for AeronContext
source§fn from(value: *mut aeron_context_t) -> Self
fn from(value: *mut aeron_context_t) -> Self
Converts to this type from the input type.
source§impl From<AeronContext> for *mut aeron_context_t
impl From<AeronContext> for *mut aeron_context_t
source§fn from(value: AeronContext) -> Self
fn from(value: AeronContext) -> Self
Converts to this type from the input type.
source§impl From<AeronContext> for aeron_context_t
impl From<AeronContext> for aeron_context_t
source§fn from(value: AeronContext) -> Self
fn from(value: AeronContext) -> Self
Converts to this type from the input type.
source§impl From<aeron_context_stct> for AeronContext
impl From<aeron_context_stct> for AeronContext
source§fn from(value: aeron_context_t) -> Self
fn from(value: aeron_context_t) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AeronContext
impl !RefUnwindSafe for AeronContext
impl !Send for AeronContext
impl !Sync for AeronContext
impl Unpin for AeronContext
impl !UnwindSafe for AeronContext
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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)