pub struct IoctlCode(pub u32);Expand description
IOCTL code builder
Tuple Fields§
§0: u32Implementations§
Source§impl IoctlCode
impl IoctlCode
Sourcepub const fn new(
device_type: u32,
function: u32,
method: IoctlMethod,
access: u32,
) -> Self
pub const fn new( device_type: u32, function: u32, method: IoctlMethod, access: u32, ) -> Self
create IOCTL code from components
Sourcepub const fn custom(
function: u32,
method: IoctlMethod,
access: IoctlAccess,
) -> Self
pub const fn custom( function: u32, method: IoctlMethod, access: IoctlAccess, ) -> Self
create IOCTL for custom device (0x8000+)
Sourcepub const fn buffered(function: u32, access: IoctlAccess) -> Self
pub const fn buffered(function: u32, access: IoctlAccess) -> Self
create buffered IOCTL (most common)
Sourcepub const fn device_type(&self) -> u32
pub const fn device_type(&self) -> u32
get device type
Sourcepub const fn method(&self) -> IoctlMethod
pub const fn method(&self) -> IoctlMethod
get transfer method
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IoctlCode
impl RefUnwindSafe for IoctlCode
impl Send for IoctlCode
impl Sync for IoctlCode
impl Unpin for IoctlCode
impl UnwindSafe for IoctlCode
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