[−][src]Struct container_spec::UserBuilder
Builder for User
.
Methods
impl UserBuilder
[src]
pub fn uid<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
[src]
UID is the user id.
pub fn gid<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
[src]
GID is the group id.
pub fn umask<VALUE: Into<Option<u32>>>(&mut self, value: VALUE) -> &mut Self
[src]
Umask is the umask for the init process.
pub fn additional_gids<VALUE: Into<Vec<u32>>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
AdditionalGids are additional group ids set for the container's process.
pub fn build(&self) -> Result<User, String>
[src]
Trait Implementations
impl Clone for UserBuilder
[src]
fn clone(&self) -> UserBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for UserBuilder
[src]
fn default() -> UserBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for UserBuilder
impl Send for UserBuilder
impl Sync for UserBuilder
impl Unpin for UserBuilder
impl UnwindSafe for UserBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,