Struct contiguous_mem::refs::MemoryReadGuard
source · pub struct MemoryReadGuard<'a, T: ?Sized, Impl: ImplDetails> { /* private fields */ }Expand description
A smart reference wrapper responsible for tracking and managing a flag that indicates whether the memory segment is actively being read from.
Trait Implementations§
source§impl<'a, T: ?Sized, Impl: ImplDetails> Deref for MemoryReadGuard<'a, T, Impl>
impl<'a, T: ?Sized, Impl: ImplDetails> Deref for MemoryReadGuard<'a, T, Impl>
source§impl<'a, T: ?Sized, Impl: ImplDetails> Drop for MemoryReadGuard<'a, T, Impl>
impl<'a, T: ?Sized, Impl: ImplDetails> Drop for MemoryReadGuard<'a, T, Impl>
Auto Trait Implementations§
impl<'a, T: ?Sized, Impl> RefUnwindSafe for MemoryReadGuard<'a, T, Impl>where T: RefUnwindSafe, <Impl as ReferenceDetails>::ReadGuard<'a>: RefUnwindSafe, <Impl as ReferenceDetails>::RefState<T>: RefUnwindSafe,
impl<'a, T: ?Sized, Impl> Send for MemoryReadGuard<'a, T, Impl>where T: Sync, <Impl as ReferenceDetails>::ReadGuard<'a>: Send, <Impl as ReferenceDetails>::RefState<T>: Send,
impl<'a, T: ?Sized, Impl> Sync for MemoryReadGuard<'a, T, Impl>where T: Sync, <Impl as ReferenceDetails>::ReadGuard<'a>: Sync, <Impl as ReferenceDetails>::RefState<T>: Sync,
impl<'a, T: ?Sized, Impl> Unpin for MemoryReadGuard<'a, T, Impl>where <Impl as ReferenceDetails>::ReadGuard<'a>: Unpin, <Impl as ReferenceDetails>::RefState<T>: Unpin,
impl<'a, T: ?Sized, Impl> UnwindSafe for MemoryReadGuard<'a, T, Impl>where T: RefUnwindSafe, <Impl as ReferenceDetails>::ReadGuard<'a>: UnwindSafe, <Impl as ReferenceDetails>::RefState<T>: 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