pub struct Ref<'a, T: ResourceHandle> { /* private fields */ }Expand description
A pointer borrowed from an owner. It cannot escape that borrow or clone the owning handle. No allocation or reference-count operation is needed.
Implementations§
Source§impl<'a, S: ResourceStorage<aeron_cnc_t>> Ref<'a, AeronCnc<S>>
impl<'a, S: ResourceStorage<aeron_cnc_t>> Ref<'a, AeronCnc<S>>
Sourcepub fn counters_reader(&self) -> Ref<'a, AeronCountersReader>
pub fn counters_reader(&self) -> Ref<'a, AeronCountersReader>
Gets a counters reader for this command and control file. This does not need to be closed manually, resources are tied to the instance of aeron_cnc.
§Return
pointer to a counters reader.
Source§impl<'a, S: ResourceStorage<aeron_image_constants_t>> Ref<'a, AeronImageConstants<S>>
impl<'a, S: ResourceStorage<aeron_image_constants_t>> Ref<'a, AeronImageConstants<S>>
pub fn subscription(&self) -> Ref<'a, AeronSubscription>
Source§impl<'a, S: ResourceStorage<aeron_str_to_ptr_hash_map_t>> Ref<'a, AeronStrToPtrHashMap<S>>
impl<'a, S: ResourceStorage<aeron_str_to_ptr_hash_map_t>> Ref<'a, AeronStrToPtrHashMap<S>>
pub fn keys(&self) -> Ref<'a, AeronStrToPtrHashMapKey>
Source§impl<'a, S: ResourceStorage<aeron_t>> Ref<'a, Aeron<S>>
impl<'a, S: ResourceStorage<aeron_t>> Ref<'a, Aeron<S>>
Sourcepub fn context(&self) -> Ref<'a, AeronContext>
pub fn context(&self) -> Ref<'a, AeronContext>
Return the AeronContext that is in use by the given client.
§Return
the AeronContext for the given client or NULL for an error.
Sourcepub fn counters_reader(&self) -> Ref<'a, AeronCountersReader>
pub fn counters_reader(&self) -> Ref<'a, AeronCountersReader>
Return a reference to the counters reader of the given client.
The AeronCountersReader is maintained by the client. And should not be freed.
§Return
AeronCountersReader or NULL for error.
Source§impl<'a, S: ResourceStorage<aeron_uri_params_t>> Ref<'a, AeronUriParams<S>>
impl<'a, S: ResourceStorage<aeron_uri_params_t>> Ref<'a, AeronUriParams<S>>
pub fn array(&self) -> Ref<'a, AeronUriParam>
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for Ref<'a, T>where
<T as ResourceHandle>::Borrowed: Freeze,
impl<'a, T> RefUnwindSafe for Ref<'a, T>where
<T as ResourceHandle>::Borrowed: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T> Send for Ref<'a, T>
impl<'a, T> Sync for Ref<'a, T>
impl<'a, T> Unpin for Ref<'a, T>where
<T as ResourceHandle>::Borrowed: Unpin,
impl<'a, T> UnsafeUnpin for Ref<'a, T>where
<T as ResourceHandle>::Borrowed: UnsafeUnpin,
impl<'a, T> UnwindSafe for Ref<'a, T>where
<T as ResourceHandle>::Borrowed: UnwindSafe,
T: RefUnwindSafe,
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