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 Freeze for LinuxIdMappingBuilder
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