Trait redox_buffer_pool::GuardedMut [−][src]
pub unsafe trait GuardedMut: Guarded { 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
fn 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.
Implementations on Foreign Types
Implementors
impl<'pool, I, H, E, C> GuardedMut for BufferSlice<'pool, I, H, E, Guard, C> where
I: Integer,
H: Handle<I, E>,
E: Copy,
C: AsBufferPool<I, H, E>,