pub struct LoadGuard<'domain, T, const DOMAIN_ID: usize> { /* private fields */ }
Expand description
Contains a reference to a value that was stored in a AtomBox
.
Returned as the result of calling AtomBox::load
.
The value is guaranteed not to be dropped before this guard is dropped.
Dereferences to the value.
Trait Implementations§
Auto Trait Implementations§
impl<'domain, T, const DOMAIN_ID: usize> Freeze for LoadGuard<'domain, T, DOMAIN_ID>
impl<'domain, T, const DOMAIN_ID: usize> RefUnwindSafe for LoadGuard<'domain, T, DOMAIN_ID>where
T: RefUnwindSafe,
impl<'domain, T, const DOMAIN_ID: usize> !Send for LoadGuard<'domain, T, DOMAIN_ID>
impl<'domain, T, const DOMAIN_ID: usize> !Sync for LoadGuard<'domain, T, DOMAIN_ID>
impl<'domain, T, const DOMAIN_ID: usize> Unpin for LoadGuard<'domain, T, DOMAIN_ID>
impl<'domain, T, const DOMAIN_ID: usize> UnwindSafe for LoadGuard<'domain, T, DOMAIN_ID>where
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