pub struct Ioctl<'a> { /* private fields */ }Expand description
IOCTL request wrapper
Implementations§
Source§impl<'a> Ioctl<'a>
impl<'a> Ioctl<'a>
Sourcepub fn method(&self) -> IoctlMethod
pub fn method(&self) -> IoctlMethod
get transfer method
Sourcepub fn input_length(&self) -> usize
pub fn input_length(&self) -> usize
get input buffer length
Sourcepub fn output_length(&self) -> usize
pub fn output_length(&self) -> usize
get output buffer length
Sourcepub fn output_mut<T>(&mut self) -> Option<&mut T>
pub fn output_mut<T>(&mut self) -> Option<&mut T>
get output buffer as typed mutable reference
Sourcepub fn input_bytes(&self) -> Option<&[u8]>
pub fn input_bytes(&self) -> Option<&[u8]>
get input as byte slice
Sourcepub fn output_bytes_mut(&mut self) -> Option<&mut [u8]>
pub fn output_bytes_mut(&mut self) -> Option<&mut [u8]>
get output as mutable byte slice
Sourcepub fn complete_success(self)
pub fn complete_success(self)
complete with success
Sourcepub fn complete_with_output(self, output_size: usize)
pub fn complete_with_output(self, output_size: usize)
complete with output size
Sourcepub fn complete_error(self, error: KmError)
pub fn complete_error(self, error: KmError)
complete with error
Sourcepub fn complete_with_info(self, status: NtStatus, information: usize)
pub fn complete_with_info(self, status: NtStatus, information: usize)
complete with status and information
Auto Trait Implementations§
impl<'a> Freeze for Ioctl<'a>
impl<'a> RefUnwindSafe for Ioctl<'a>
impl<'a> !Send for Ioctl<'a>
impl<'a> !Sync for Ioctl<'a>
impl<'a> Unpin for Ioctl<'a>
impl<'a> !UnwindSafe for Ioctl<'a>
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