pub struct LinuxDeviceBuilder { /* private fields */ }
Expand description
Builder for LinuxDevice
.
Implementations§
Source§impl LinuxDeviceBuilder
impl LinuxDeviceBuilder
Sourcepub fn typ<VALUE: Into<LinuxDeviceType>>(self, value: VALUE) -> Self
pub fn typ<VALUE: Into<LinuxDeviceType>>(self, value: VALUE) -> Self
Device type, block, char, etc..
Sourcepub fn file_mode<VALUE: Into<u32>>(self, value: VALUE) -> Self
pub fn file_mode<VALUE: Into<u32>>(self, value: VALUE) -> Self
FileMode permission bits for the device.
Sourcepub fn build(self) -> Result<LinuxDevice, OciSpecError>
pub fn build(self) -> Result<LinuxDevice, OciSpecError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinuxDeviceBuilder
impl RefUnwindSafe for LinuxDeviceBuilder
impl Send for LinuxDeviceBuilder
impl Sync for LinuxDeviceBuilder
impl Unpin for LinuxDeviceBuilder
impl UnwindSafe for LinuxDeviceBuilder
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