pub struct AeronAsyncDestinationById<S: ResourceStorage<aeron_async_destination_by_id_t> = CResource<aeron_async_destination_by_id_t>> { /* private fields */ }Implementations§
Source§impl AeronAsyncDestinationById<CResource<aeron_async_destination_by_id_t>>
impl AeronAsyncDestinationById<CResource<aeron_async_destination_by_id_t>>
Sourcepub fn new_zeroed_on_heap() -> Self
pub fn new_zeroed_on_heap() -> Self
Creates zeroed native storage on the heap.
Sourcepub fn new_zeroed_on_stack() -> AeronAsyncDestinationById<Inline<aeron_async_destination_by_id_t>>
pub fn new_zeroed_on_stack() -> AeronAsyncDestinationById<Inline<aeron_async_destination_by_id_t>>
Creates zeroed native storage inline.
Source§impl<S: ResourceStorage<aeron_async_destination_by_id_t>> AeronAsyncDestinationById<S>
impl<S: ResourceStorage<aeron_async_destination_by_id_t>> AeronAsyncDestinationById<S>
pub fn get_inner(&self) -> *mut aeron_async_destination_by_id_t
Sourcepub unsafe fn get_inner_mut(&self) -> &mut aeron_async_destination_by_id_t
pub unsafe fn get_inner_mut(&self) -> &mut aeron_async_destination_by_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_destination_by_id_t
pub unsafe fn get_inner_ref(&self) -> &aeron_async_destination_by_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 AeronAsyncDestinationById
impl AeronAsyncDestinationById
Sourcepub unsafe fn from_ptr(
ptr: *mut aeron_async_destination_by_id_t,
) -> AeronAsyncDestinationById<Borrowed<aeron_async_destination_by_id_t>>
pub unsafe fn from_ptr( ptr: *mut aeron_async_destination_by_id_t, ) -> AeronAsyncDestinationById<Borrowed<aeron_async_destination_by_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_destination_by_id_t>> Clone for AeronAsyncDestinationById<S>
impl<S: Clone + ResourceStorage<aeron_async_destination_by_id_t>> Clone for AeronAsyncDestinationById<S>
Source§fn clone(&self) -> AeronAsyncDestinationById<S>
fn clone(&self) -> AeronAsyncDestinationById<S>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S: ResourceStorage<aeron_async_destination_by_id_t>> Debug for AeronAsyncDestinationById<S>
impl<S: ResourceStorage<aeron_async_destination_by_id_t>> Debug for AeronAsyncDestinationById<S>
Source§impl<S: ResourceStorage<aeron_async_destination_by_id_t>> From<&AeronAsyncDestinationById<S>> for *mut aeron_async_destination_by_id_t
impl<S: ResourceStorage<aeron_async_destination_by_id_t>> From<&AeronAsyncDestinationById<S>> for *mut aeron_async_destination_by_id_t
Source§fn from(value: &AeronAsyncDestinationById<S>) -> Self
fn from(value: &AeronAsyncDestinationById<S>) -> Self
Converts to this type from the input type.
Source§impl<S: ResourceStorage<aeron_async_destination_by_id_t>> From<AeronAsyncDestinationById<S>> for *mut aeron_async_destination_by_id_t
impl<S: ResourceStorage<aeron_async_destination_by_id_t>> From<AeronAsyncDestinationById<S>> for *mut aeron_async_destination_by_id_t
Source§fn from(value: AeronAsyncDestinationById<S>) -> Self
fn from(value: AeronAsyncDestinationById<S>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<S> Freeze for AeronAsyncDestinationById<S>where
S: Freeze,
impl<S> RefUnwindSafe for AeronAsyncDestinationById<S>where
S: RefUnwindSafe,
impl<S> Send for AeronAsyncDestinationById<S>where
S: Send,
impl<S> Sync for AeronAsyncDestinationById<S>where
S: Sync,
impl<S> Unpin for AeronAsyncDestinationById<S>where
S: Unpin,
impl<S> UnsafeUnpin for AeronAsyncDestinationById<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for AeronAsyncDestinationById<S>where
S: UnwindSafe,
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