pub struct LinuxDeviceCgroupBuilder { /* private fields */ }
Expand description
Builder for LinuxDeviceCgroup
.
Implementations§
Source§impl LinuxDeviceCgroupBuilder
impl LinuxDeviceCgroupBuilder
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 access<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn access<VALUE: Into<String>>(self, value: VALUE) -> Self
Cgroup access premissions format, rwm.
Sourcepub fn build(self) -> Result<LinuxDeviceCgroup, OciSpecError>
pub fn build(self) -> Result<LinuxDeviceCgroup, OciSpecError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinuxDeviceCgroupBuilder
impl RefUnwindSafe for LinuxDeviceCgroupBuilder
impl Send for LinuxDeviceCgroupBuilder
impl Sync for LinuxDeviceCgroupBuilder
impl Unpin for LinuxDeviceCgroupBuilder
impl UnwindSafe for LinuxDeviceCgroupBuilder
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