pub struct MemoryWriteGuard<'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 written to.

Trait Implementations§

source§

impl<'a, T: ?Sized, Impl: ImplDetails> Deref for MemoryWriteGuard<'a, T, Impl>

§

type Target = T

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl<'a, T: ?Sized, Impl: ImplDetails> DerefMut for MemoryWriteGuard<'a, T, Impl>

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl<'a, T: ?Sized, Impl: ImplDetails> Drop for MemoryWriteGuard<'a, T, Impl>

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

§

impl<'a, T: ?Sized, Impl> RefUnwindSafe for MemoryWriteGuard<'a, T, Impl>where T: RefUnwindSafe, <Impl as ReferenceDetails>::RefState<T>: RefUnwindSafe, <Impl as ReferenceDetails>::WriteGuard<'a>: RefUnwindSafe,

§

impl<'a, T: ?Sized, Impl> Send for MemoryWriteGuard<'a, T, Impl>where T: Send, <Impl as ReferenceDetails>::RefState<T>: Send, <Impl as ReferenceDetails>::WriteGuard<'a>: Send,

§

impl<'a, T: ?Sized, Impl> Sync for MemoryWriteGuard<'a, T, Impl>where T: Sync, <Impl as ReferenceDetails>::RefState<T>: Sync, <Impl as ReferenceDetails>::WriteGuard<'a>: Sync,

§

impl<'a, T: ?Sized, Impl> Unpin for MemoryWriteGuard<'a, T, Impl>where <Impl as ReferenceDetails>::RefState<T>: Unpin, <Impl as ReferenceDetails>::WriteGuard<'a>: Unpin,

§

impl<'a, T, Impl> !UnwindSafe for MemoryWriteGuard<'a, T, Impl>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.