pub struct IdMapping {
pub container_id: u32,
pub host_id: u32,
pub count: u32,
}Expand description
UID/GID mapping configuration for user namespaces
Maps a range of UIDs/GIDs inside the container to a range outside
Fields§
§container_id: u32ID inside the container
host_id: u32ID outside the container (on the host)
count: u32Number of IDs to map
Implementations§
Source§impl IdMapping
impl IdMapping
Sourcepub fn new(container_id: u32, host_id: u32, count: u32) -> Self
pub fn new(container_id: u32, host_id: u32, count: u32) -> Self
Create a new ID mapping with validation
Trait Implementations§
Source§impl From<&IdMapping> for OciIdMapping
impl From<&IdMapping> for OciIdMapping
impl Eq for IdMapping
impl StructuralPartialEq for IdMapping
Auto Trait Implementations§
impl Freeze for IdMapping
impl RefUnwindSafe for IdMapping
impl Send for IdMapping
impl Sync for IdMapping
impl Unpin for IdMapping
impl UnsafeUnpin for IdMapping
impl UnwindSafe for IdMapping
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.