[][src]Trait guard_trait::GuardedMut

pub unsafe trait GuardedMut: Guarded {
    fn borrow_guarded_mut(&mut self) -> &mut Self::Target;
}

A trait for pointer types that uphold the guard invariants, and are able to dereference mutably.

Required methods

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

Borrow the pointee mutably, into a fixed reference that can be sent directly and safely to e.g. memory-sharing completion-based I/O interfaces.

Implementors of such interfaces must however take buffers by reference to maintain safety.

Loading content...

Implementors

impl<T, U> GuardedMut for AssertSafe<T> where
    T: Deref<Target = U> + DerefMut,
    U: ?Sized
[src]

impl<T, U> GuardedMut for MappedMut<T, U> where
    T: GuardedMut,
    U: ?Sized
[src]

impl<T, U> GuardedMut for T where
    T: DerefMut<Target = U> + StableDeref + 'static,
    U: ?Sized
[src]

Loading content...