pub struct AeronAsyncGetNextAvailableSessionId<S: ResourceStorage<aeron_async_get_next_available_session_id_t> = CResource<aeron_async_get_next_available_session_id_t>> { /* private fields */ }Implementations§
Source§impl AeronAsyncGetNextAvailableSessionId<CResource<aeron_async_get_next_available_session_id_t>>
impl AeronAsyncGetNextAvailableSessionId<CResource<aeron_async_get_next_available_session_id_t>>
Sourcepub unsafe fn new_zeroed_on_heap() -> Self
pub unsafe fn new_zeroed_on_heap() -> Self
Creates zeroed native storage on the heap.
§Safety
For handles with native methods, initialise the native state before calling those methods. Zeroed storage is not a connection.
Sourcepub unsafe fn new_zeroed_on_stack() -> AeronAsyncGetNextAvailableSessionId<Inline<aeron_async_get_next_available_session_id_t>>
pub unsafe fn new_zeroed_on_stack() -> AeronAsyncGetNextAvailableSessionId<Inline<aeron_async_get_next_available_session_id_t>>
Creates zeroed native storage inline.
§Safety
For handles with native methods, initialise the native state before calling those methods. Zeroed storage is not a connection.
Source§impl<S: ResourceStorage<aeron_async_get_next_available_session_id_t>> AeronAsyncGetNextAvailableSessionId<S>
impl<S: ResourceStorage<aeron_async_get_next_available_session_id_t>> AeronAsyncGetNextAvailableSessionId<S>
Sourcepub fn aeron_async_next_session_id_poll(&self) -> Result<i32, AeronCError>
pub fn aeron_async_next_session_id_poll(&self) -> Result<i32, AeronCError>
Poll the completion of the aeron_async_next_session_id call.
§Parameters
next_session_idto set if completed successfully.
pub fn get_inner(&self) -> *mut aeron_async_get_next_available_session_id_t
Sourcepub unsafe fn get_inner_mut(
&self,
) -> &mut aeron_async_get_next_available_session_id_t
pub unsafe fn get_inner_mut( &self, ) -> &mut aeron_async_get_next_available_session_id_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.
Sourcepub unsafe fn get_inner_ref(
&self,
) -> &aeron_async_get_next_available_session_id_t
pub unsafe fn get_inner_ref( &self, ) -> &aeron_async_get_next_available_session_id_t
Borrow the native struct.
§Safety
No Rust or native call may mutate the struct while this reference is alive. Shared wrappers also require coordination with other threads.
Source§impl AeronAsyncGetNextAvailableSessionId
impl AeronAsyncGetNextAvailableSessionId
Sourcepub unsafe fn from_ptr(
ptr: *mut aeron_async_get_next_available_session_id_t,
) -> AeronAsyncGetNextAvailableSessionId<Borrowed<aeron_async_get_next_available_session_id_t>>
pub unsafe fn from_ptr( ptr: *mut aeron_async_get_next_available_session_id_t, ) -> AeronAsyncGetNextAvailableSessionId<Borrowed<aeron_async_get_next_available_session_id_t>>
Borrow a native pointer without taking ownership.
§Safety
The pointer must be non-null. It and its parents must remain live for every use. Calls must follow Aeron’s threading and aliasing rules.
Trait Implementations§
Source§impl<S: Clone + ResourceStorage<aeron_async_get_next_available_session_id_t>> Clone for AeronAsyncGetNextAvailableSessionId<S>
impl<S: Clone + ResourceStorage<aeron_async_get_next_available_session_id_t>> Clone for AeronAsyncGetNextAvailableSessionId<S>
Source§fn clone(&self) -> AeronAsyncGetNextAvailableSessionId<S>
fn clone(&self) -> AeronAsyncGetNextAvailableSessionId<S>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more