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) -> AeronDriverContext
pub fn conductor(&self) -> AeronDriverConductor
pub fn sender(&self) -> AeronDriverSender
pub fn receiver(&self) -> AeronDriverReceiver
pub fn runners(&self) -> [aeron_agent_runner_t; 3]
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 close(&self) -> Result<i32, AeronCError>
pub fn close(&self) -> Result<i32, AeronCError>
pub fn uri_get_offset_info(&self, offset: i32) -> &str
pub fn threading_mode_to_string(&self, mode: aeron_threading_mode_t) -> &str
pub fn get_inner(&self) -> *mut 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 wait_for_previous_media_driver_to_timeout(
aeron_context: &AeronDriverContext,
)
pub fn wait_for_previous_media_driver_to_timeout( aeron_context: &AeronDriverContext, )
if you have existing shm files and its before the driver timeout it will try to reuse it and fail this makes sure that if that is the case it will wait else it proceeds
Trait Implementations§
Source§impl Clone for AeronDriver
impl Clone for AeronDriver
Source§fn clone(&self) -> AeronDriver
fn clone(&self) -> AeronDriver
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 AeronDriver
impl Debug for AeronDriver
Source§impl Deref for AeronDriver
impl Deref for AeronDriver
Source§impl From<&AeronDriver> for *mut aeron_driver_t
impl From<&AeronDriver> for *mut aeron_driver_t
Source§fn from(value: &AeronDriver) -> Self
fn from(value: &AeronDriver) -> Self
Converts to this type from the input type.
Source§impl From<*const aeron_driver_stct> for AeronDriver
impl From<*const aeron_driver_stct> for AeronDriver
Source§fn from(value: *const aeron_driver_t) -> Self
fn from(value: *const aeron_driver_t) -> Self
Converts to this type from the input type.
Source§impl From<*mut aeron_driver_stct> for AeronDriver
impl From<*mut aeron_driver_stct> for AeronDriver
Source§fn from(value: *mut aeron_driver_t) -> Self
fn from(value: *mut aeron_driver_t) -> Self
Converts to this type from the input type.
Source§impl From<AeronDriver> for *mut aeron_driver_t
impl From<AeronDriver> for *mut aeron_driver_t
Source§fn from(value: AeronDriver) -> Self
fn from(value: AeronDriver) -> Self
Converts to this type from the input type.
Source§impl From<AeronDriver> for aeron_driver_t
impl From<AeronDriver> for aeron_driver_t
Source§fn from(value: AeronDriver) -> Self
fn from(value: AeronDriver) -> Self
Converts to this type from the input type.
Source§impl From<aeron_driver_stct> for AeronDriver
impl From<aeron_driver_stct> for AeronDriver
Source§fn from(value: aeron_driver_t) -> Self
fn from(value: aeron_driver_t) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AeronDriver
impl !RefUnwindSafe for AeronDriver
impl !Send for AeronDriver
impl !Sync for AeronDriver
impl Unpin for AeronDriver
impl !UnwindSafe for AeronDriver
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