pub struct AeronAsyncAddExclusivePublication { /* private fields */ }
Implementations§
Source§impl AeronAsyncAddExclusivePublication
impl AeronAsyncAddExclusivePublication
Sourcepub fn new_zeroed_on_heap() -> Self
pub fn new_zeroed_on_heap() -> Self
creates zeroed struct where the underlying c struct is on the heap
Sourcepub fn new_zeroed_on_stack() -> Self
pub fn new_zeroed_on_stack() -> Self
creates zeroed struct where the underlying c struct is on the stack (Use with care)
Sourcepub fn aeron_async_add_exclusive_exclusive_publication_get_registration_id(
&self,
) -> i64
👎Deprecated
pub fn aeron_async_add_exclusive_exclusive_publication_get_registration_id( &self, ) -> i64
Gets the registration id for addition of the exclusive_publication. Note that using this after a call to poll the succeeds or errors is undefined behaviour. As the async_add_exclusive_publication_t may have been freed.
§Return
registration id for the exclusive_publication. @deprecated Use aeron_async_add_exclusive_publication_get_registration_id instead.
Sourcepub fn get_registration_id(&self) -> i64
pub fn get_registration_id(&self) -> i64
Gets the registration id for addition of the exclusive_publication. Note that using this after a call to poll the succeeds or errors is undefined behaviour. As the async_add_exclusive_publication_t may have been freed.
§Return
registration id for the exclusive_publication.
pub fn get_inner(&self) -> *mut aeron_async_add_exclusive_publication_t
pub fn get_inner_mut(&self) -> &mut aeron_async_add_exclusive_publication_t
pub fn get_inner_ref(&self) -> &aeron_async_add_exclusive_publication_t
Source§impl AeronAsyncAddExclusivePublication
impl AeronAsyncAddExclusivePublication
pub fn new( client: &Aeron, uri: &CStr, stream_id: i32, ) -> Result<Self, AeronCError>
pub fn poll(&self) -> Result<Option<AeronExclusivePublication>, AeronCError>
pub fn poll_blocking( &self, timeout: Duration, ) -> Result<AeronExclusivePublication, AeronCError>
Trait Implementations§
Source§impl Clone for AeronAsyncAddExclusivePublication
impl Clone for AeronAsyncAddExclusivePublication
Source§fn clone(&self) -> AeronAsyncAddExclusivePublication
fn clone(&self) -> AeronAsyncAddExclusivePublication
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more