[−][src]Struct clone3::Clone3
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: RawFdImplementations
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
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]
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,
pub 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, 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.
pub 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>,