Struct kernel::user_ptr::UserSlicePtrWriter
source · [−]pub struct UserSlicePtrWriter(_, _);
Expand description
A writer for UserSlicePtr
.
Used to incrementally write into the user slice.
Trait Implementations
sourceimpl IoBufferWriter for UserSlicePtrWriter
impl IoBufferWriter for UserSlicePtrWriter
sourcefn len(&self) -> usize
fn len(&self) -> usize
Returns the number of bytes left to be written into the io buffer. Read more
sourceunsafe fn write_raw(&mut self, data: *const u8, len: usize) -> Result
unsafe fn write_raw(&mut self, data: *const u8, len: usize) -> Result
Writes raw data to the io buffer from a raw kernel buffer. Read more
sourcefn write_slice(&mut self, data: &[u8]) -> Result
fn write_slice(&mut self, data: &[u8]) -> Result
Writes a byte slice into the io buffer. Read more
sourcefn write<T: WritableToBytes>(&mut self, data: &T) -> Result
fn write<T: WritableToBytes>(&mut self, data: &T) -> Result
Writes the contents of the given data into the io buffer.
Auto Trait Implementations
impl RefUnwindSafe for UserSlicePtrWriter
impl !Send for UserSlicePtrWriter
impl !Sync for UserSlicePtrWriter
impl Unpin for UserSlicePtrWriter
impl UnwindSafe for UserSlicePtrWriter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more