pub struct IoBufMut { /* private fields */ }Expand description
A stable, exclusively writable region. Does not own the memory.
Implementations§
Source§impl IoBufMut
impl IoBufMut
Sourcepub unsafe fn from_raw_parts(ptr: *mut u8, len: usize) -> Self
pub unsafe fn from_raw_parts(ptr: *mut u8, len: usize) -> Self
§Safety
ptr must be non-null and writable for len bytes. The region must remain
alive and unmoved, and no other access is permitted, until delivery of the
terminal completion or return from driver destruction.
Sourcepub fn as_mut_ptr(&self) -> *mut u8
pub fn as_mut_ptr(&self) -> *mut u8
Return the stable address of the exclusively writable byte region.
Trait Implementations§
Auto Trait Implementations§
impl !Send for IoBufMut
impl !Sync for IoBufMut
impl Freeze for IoBufMut
impl RefUnwindSafe for IoBufMut
impl Unpin for IoBufMut
impl UnsafeUnpin for IoBufMut
impl UnwindSafe for IoBufMut
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more