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