[][src]Struct clone3::Clone3

pub struct Clone3<'a> {
    pub flags: Flags,
    pub pidfd: Option<&'a mut RawFd>,
    pub child_tid: Option<&'a mut pid_t>,
    pub parent_tid: Option<&'a mut pid_t>,
    pub exit_signal: u64,
    pub stack: Option<&'a mut [u8]>,
    pub tls: u64,
    pub set_tid: Option<&'a [pid_t]>,
    pub cgroup: RawFd,
}

Higher level wrapper around the clone3 system call.

Fields

flags: Flagspidfd: Option<&'a mut RawFd>child_tid: Option<&'a mut pid_t>parent_tid: Option<&'a mut pid_t>exit_signal: u64stack: Option<&'a mut [u8]>tls: u64set_tid: Option<&'a [pid_t]>cgroup: RawFd

Implementations

impl<'a> Clone3<'a>[src]

pub unsafe fn call(self) -> Result<pid_t, Errno>[src]

Perform the system call.

Errors

Errors if the system call returns -1.

Panics

Panics if the following conditions are not met:

  • PIDFD must be set iff pidfd is set
  • at least one of CHILD_CLEARTID and CHILD_SETTID must be set iff child_tid is set
  • PARENT_SETTID must be set iff parent_tid is set
  • if VM is set stack must be set

pub fn into_clone_args(mut self: Self) -> CloneArgs[src]

Trait Implementations

impl<'a> Debug for Clone3<'a>[src]

impl<'a> Default for Clone3<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Clone3<'a>[src]

impl<'a> Send for Clone3<'a>[src]

impl<'a> Sync for Clone3<'a>[src]

impl<'a> Unpin for Clone3<'a>[src]

impl<'a> !UnwindSafe for Clone3<'a>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.