pub struct Ref<'a, T, C = DefaultConfig>{ /* private fields */ }
Expand description
A guard that allows access to an object in a pool.
While the guard exists, it indicates to the pool that the item the guard references is currently being accessed. If the item is removed from the pool while the guard exists, the removal will be deferred until all guards are dropped.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, T, C> Freeze for Ref<'a, T, C>
impl<'a, T, C = DefaultConfig> !RefUnwindSafe for Ref<'a, T, C>
impl<'a, T, C = DefaultConfig> !Send for Ref<'a, T, C>
impl<'a, T, C = DefaultConfig> !Sync for Ref<'a, T, C>
impl<'a, T, C> Unpin for Ref<'a, T, C>
impl<'a, T, C = DefaultConfig> !UnwindSafe for Ref<'a, T, C>
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes