Struct MemoryWriteGuard

Source
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: Debug + ?Sized, Impl: Debug + ImplDetails> Debug for MemoryWriteGuard<'a, T, Impl>
where Impl::RefState<T>: Debug, Impl::WriteGuard<'a>: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

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

Source§

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, Impl> Freeze for MemoryWriteGuard<'a, T, Impl>
where <Impl as ReferenceDetails>::RefState<T>: Freeze, <Impl as ReferenceDetails>::WriteGuard<'a>: Freeze, T: ?Sized,

§

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

§

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

§

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

§

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

§

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

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where 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 T
where 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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

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

Source§

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 T
where U: TryFrom<T>,

Source§

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.