pub struct DeviceBuilder<'a> { /* private fields */ }Expand description
device builder for common setup patterns
Implementations§
Source§impl<'a> DeviceBuilder<'a>
impl<'a> DeviceBuilder<'a>
Sourcepub fn name(self, name: UnicodeString) -> Self
pub fn name(self, name: UnicodeString) -> Self
set device name (e.g., “\Device\MyDevice”)
Sourcepub fn symbolic_link(self, link: UnicodeString) -> Self
pub fn symbolic_link(self, link: UnicodeString) -> Self
set symbolic link name (e.g., “\DosDevices\MyDevice”)
Sourcepub fn device_type(self, dtype: DeviceType) -> Self
pub fn device_type(self, dtype: DeviceType) -> Self
set device type
Sourcepub fn characteristics(self, chars: u32) -> Self
pub fn characteristics(self, chars: u32) -> Self
set device characteristics
Sourcepub fn buffered_io(self) -> Self
pub fn buffered_io(self) -> Self
use buffered I/O
Auto Trait Implementations§
impl<'a> Freeze for DeviceBuilder<'a>
impl<'a> RefUnwindSafe for DeviceBuilder<'a>
impl<'a> !Send for DeviceBuilder<'a>
impl<'a> !Sync for DeviceBuilder<'a>
impl<'a> Unpin for DeviceBuilder<'a>
impl<'a> !UnwindSafe for DeviceBuilder<'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