pub unsafe trait GuardedMut: Guarded {
// Required method
fn borrow_guarded_mut(&mut self) -> &mut Self::Target;
}
Expand description
A trait for pointer types that uphold the guard invariants, and are able to dereference mutably.
Required Methods§
Sourcefn borrow_guarded_mut(&mut self) -> &mut Self::Target
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.