pub struct DriverBuilder { /* private fields */ }Expand description
driver builder for setting up dispatch routines
Implementations§
Source§impl DriverBuilder
impl DriverBuilder
Sourcepub unsafe fn new(ptr: *mut DriverObjectRaw) -> Option<Self>
pub unsafe fn new(ptr: *mut DriverObjectRaw) -> Option<Self>
Sourcepub fn unload(self, handler: DriverUnload) -> Self
pub fn unload(self, handler: DriverUnload) -> Self
set unload routine
Sourcepub fn create(self, handler: DriverDispatch) -> Self
pub fn create(self, handler: DriverDispatch) -> Self
set create handler (IRP_MJ_CREATE)
Sourcepub fn close(self, handler: DriverDispatch) -> Self
pub fn close(self, handler: DriverDispatch) -> Self
set close handler (IRP_MJ_CLOSE)
Sourcepub fn device_control(self, handler: DriverDispatch) -> Self
pub fn device_control(self, handler: DriverDispatch) -> Self
set device control handler (IRP_MJ_DEVICE_CONTROL)
Sourcepub fn read(self, handler: DriverDispatch) -> Self
pub fn read(self, handler: DriverDispatch) -> Self
set read handler (IRP_MJ_READ)
Sourcepub fn write(self, handler: DriverDispatch) -> Self
pub fn write(self, handler: DriverDispatch) -> Self
set write handler (IRP_MJ_WRITE)
Sourcepub fn major_function(
self,
function: IrpMajorFunction,
handler: DriverDispatch,
) -> Self
pub fn major_function( self, function: IrpMajorFunction, handler: DriverDispatch, ) -> Self
set custom major function handler
Auto Trait Implementations§
impl Freeze for DriverBuilder
impl RefUnwindSafe for DriverBuilder
impl !Send for DriverBuilder
impl !Sync for DriverBuilder
impl Unpin for DriverBuilder
impl UnwindSafe for DriverBuilder
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