Struct oci_spec::runtime::LinuxDeviceBuilder
source · 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 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