Struct oci_spec::runtime::LinuxIdMappingBuilder
source · pub struct LinuxIdMappingBuilder { /* private fields */ }
Expand description
Builder for LinuxIdMapping
.
Implementations§
source§impl LinuxIdMappingBuilder
impl LinuxIdMappingBuilder
sourcepub fn host_id<VALUE: Into<u32>>(self, value: VALUE) -> Self
pub fn host_id<VALUE: Into<u32>>(self, value: VALUE) -> Self
HostID is the starting UID/GID on the host to be mapped to
container_id
.
sourcepub fn container_id<VALUE: Into<u32>>(self, value: VALUE) -> Self
pub fn container_id<VALUE: Into<u32>>(self, value: VALUE) -> Self
ContainerID is the starting UID/GID in the container.
sourcepub fn size<VALUE: Into<u32>>(self, value: VALUE) -> Self
pub fn size<VALUE: Into<u32>>(self, value: VALUE) -> Self
Size is the number of IDs to be mapped.
sourcepub fn build(self) -> Result<LinuxIdMapping, OciSpecError>
pub fn build(self) -> Result<LinuxIdMapping, OciSpecError>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for LinuxIdMappingBuilder
impl Send for LinuxIdMappingBuilder
impl Sync for LinuxIdMappingBuilder
impl Unpin for LinuxIdMappingBuilder
impl UnwindSafe for LinuxIdMappingBuilder
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