pub struct AeronDriver { /* private fields */ }Implementations§
Source§impl AeronDriver
impl AeronDriver
Sourcepub fn new(context: &AeronDriverContext) -> Result<Self, AeronCError>
pub fn new(context: &AeronDriverContext) -> Result<Self, AeronCError>
pub fn context(&self) -> Ref<'_, AeronDriverContext>
pub fn conductor(&self) -> AeronDriverConductor
pub fn native_resource_agent(&self) -> AeronDriverNativeResourceAgent
pub fn sender(&self) -> AeronDriverSender
pub fn receiver(&self) -> AeronDriverReceiver
pub fn runners(&self) -> [aeron_agent_runner_t; 4]
pub fn subscribable_is_active_state( state: aeron_subscription_tether_state_t, ) -> bool
Sourcepub fn main_do_work(&self) -> Result<i32, AeronCError>
pub fn main_do_work(&self) -> Result<i32, AeronCError>
Call the Conductor (or Shared) main do_work duty cycle once.
Driver must have been created with manual_main_loop set to true.
§Return
0 for success and -1 for error.
Sourcepub fn main_idle_strategy(&self, work_count: c_int)
pub fn main_idle_strategy(&self, work_count: c_int)
Sourcepub fn uri_get_offset_info(offset: i32) -> &'static str
pub fn uri_get_offset_info(offset: i32) -> &'static str
SAFETY: this is static for performance reasons, so you should not store this without copying it!!
Sourcepub fn threading_mode_to_string(mode: aeron_threading_mode_t) -> &'static str
pub fn threading_mode_to_string(mode: aeron_threading_mode_t) -> &'static str
SAFETY: this is static for performance reasons, so you should not store this without copying it!!
Sourcepub fn version_text() -> &'static str
pub fn version_text() -> &'static str
SAFETY: this is static for performance reasons, so you should not store this without copying it!!
Sourcepub fn version_git_sha() -> &'static str
pub fn version_git_sha() -> &'static str
SAFETY: this is static for performance reasons, so you should not store this without copying it!!
pub fn version_major() -> Result<i32, AeronCError>
pub fn version_minor() -> Result<i32, AeronCError>
pub fn version_patch() -> Result<i32, AeronCError>
pub fn termination_validator_default_allow( state: *mut c_void, token_buffer: &mut [u8], ) -> bool
pub fn termination_validator_default_deny( state: *mut c_void, token_buffer: &mut [u8], ) -> bool
pub fn termination_validator_load( validator_name: &CStr, ) -> aeron_driver_termination_validator_func_t
pub fn get_inner(&self) -> *mut aeron_driver_t
Sourcepub unsafe fn get_inner_mut(&self) -> &mut aeron_driver_t
pub unsafe fn get_inner_mut(&self) -> &mut aeron_driver_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_driver_t
Source§impl AeronDriver
impl AeronDriver
pub fn launch_embedded( aeron_context: AeronDriverContext, register_sigint: bool, ) -> (Arc<AtomicBool>, JoinHandle<Result<(), AeronCError>>)
Sourcepub fn launch_embedded_guard(
aeron_context: AeronDriverContext,
register_sigint: bool,
) -> EmbeddedMediaDriver
pub fn launch_embedded_guard( aeron_context: AeronDriverContext, register_sigint: bool, ) -> EmbeddedMediaDriver
Launch an embedded media driver, returning a RAII guard that stops the driver on drop (so a panic or early return can’t leak a driver process).
Prefer this over Self::launch_embedded, which returns a raw
(Arc<AtomicBool>, JoinHandle) tuple the caller must remember to drive.
register_sigint is true to mirror the standalone binary.
Sourcepub fn wait_for_previous_media_driver_to_timeout(
aeron_context: &AeronDriverContext,
)
pub fn wait_for_previous_media_driver_to_timeout( aeron_context: &AeronDriverContext, )
If existing shm files are still within the driver timeout, a new driver tries to reuse them and fails. This waits in that case and otherwise proceeds
Trait Implementations§
Source§impl Clone for AeronDriver
impl Clone for AeronDriver
Source§fn clone(&self) -> AeronDriver
fn clone(&self) -> AeronDriver
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more