Struct DeviceIoControl
pub struct DeviceIoControl<S, I, O>{ /* private fields */ }Expand description
Send a control code to a device.
Implementations§
§impl<S, I, O> DeviceIoControl<S, I, O>
impl<S, I, O> DeviceIoControl<S, I, O>
pub fn new(
fd: S,
ioctl_code: u32,
input_buffer: Option<I>,
output_buffer: Option<O>,
) -> DeviceIoControl<S, I, O>
pub fn new( fd: S, ioctl_code: u32, input_buffer: Option<I>, output_buffer: Option<O>, ) -> DeviceIoControl<S, I, O>
Create DeviceIoControl.
Trait Implementations§
§impl<S, I, O> IntoInner for DeviceIoControl<S, I, O>
impl<S, I, O> IntoInner for DeviceIoControl<S, I, O>
§fn into_inner(self) -> <DeviceIoControl<S, I, O> as IntoInner>::Inner
fn into_inner(self) -> <DeviceIoControl<S, I, O> as IntoInner>::Inner
Get the inner buffer.
§impl<S, I, O> OpCode for DeviceIoControl<S, I, O>
impl<S, I, O> OpCode for DeviceIoControl<S, I, O>
§unsafe fn operate(
self: Pin<&mut DeviceIoControl<S, I, O>>,
optr: *mut OVERLAPPED,
) -> Poll<Result<usize, Error>>
unsafe fn operate( self: Pin<&mut DeviceIoControl<S, I, O>>, optr: *mut OVERLAPPED, ) -> Poll<Result<usize, Error>>
Perform Windows API call with given pointer to overlapped struct. Read more
impl<'__pin, S, I, O> Unpin for DeviceIoControl<S, I, O>
Auto Trait Implementations§
impl<S, I, O> Freeze for DeviceIoControl<S, I, O>
impl<S, I, O> RefUnwindSafe for DeviceIoControl<S, I, O>
impl<S, I, O> Send for DeviceIoControl<S, I, O>
impl<S, I, O> Sync for DeviceIoControl<S, I, O>
impl<S, I, O> UnwindSafe for DeviceIoControl<S, I, O>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more