pub struct Clone3<'a> { /* private fields */ }Expand description
Implementations§
Source§impl<'a> Clone3<'a>
impl<'a> Clone3<'a>
pub fn flag_child_cleartid(&mut self, child_tid: &'a mut pid_t) -> &mut Self
pub fn flag_child_settid(&mut self, child_tid: &'a mut pid_t) -> &mut Self
pub fn flag_clear_sighand(&mut self) -> &mut Self
pub fn flag_files(&mut self) -> &mut Self
pub fn flag_fs(&mut self) -> &mut Self
pub fn flag_into_cgroup(&mut self, cgroup: &'a dyn AsRawFd) -> &mut Self
pub fn flag_io(&mut self) -> &mut Self
pub fn flag_newcgroup(&mut self) -> &mut Self
pub fn flag_newipc(&mut self) -> &mut Self
pub fn flag_newnet(&mut self) -> &mut Self
pub fn flag_newns(&mut self) -> &mut Self
pub fn flag_newpid(&mut self) -> &mut Self
pub fn flag_newtime(&mut self) -> &mut Self
pub fn flag_newuser(&mut self) -> &mut Self
pub fn flag_newuts(&mut self) -> &mut Self
pub fn flag_parent(&mut self) -> &mut Self
pub fn flag_parent_settid(&mut self, parent_tid: &'a mut pid_t) -> &mut Self
pub fn flag_pidfd(&mut self, pidfd: &'a mut RawFd) -> &mut Self
pub fn flag_ptrace(&mut self) -> &mut Self
pub fn flag_settls(&mut self, tls: u64) -> &mut Self
pub fn flag_sighand(&mut self) -> &mut Self
pub fn flag_sysvsem(&mut self) -> &mut Self
pub fn flag_thread(&mut self) -> &mut Self
pub fn flag_untraced(&mut self) -> &mut Self
pub fn flag_vfork(&mut self) -> &mut Self
pub fn flag_vm(&mut self, stack: &'a mut [u8]) -> &mut Self
pub fn exit_signal(&mut self, exit_signal: u64) -> &mut Self
pub fn stack(&mut self, stack: &'a mut [u8]) -> &mut Self
pub fn set_tid(&mut self, set_tid: &'a [pid_t]) -> &mut Self
Sourcepub unsafe fn call(&mut self) -> Result<pid_t, Errno>
pub unsafe fn call(&mut self) -> Result<pid_t, Errno>
Performs the system call.
§Errors
Errors if the system call returns -1.
§Panics
Panics if the set flags are incompatible:
CHILD_CLEARTIDandCHILD_SETTIDmust not be set togetherCLEAR_SIGHANDandSIGHANDmust not be set togetherNEWIPCandSYSVSEMmust not be set togetherFSandNEWNSmust not be set togetherTHREADandPIDFDmust not be set togetherNEWPIDmust not be set withPARENTorTHREADNEWUSERmust not be set withFSorPARENTorTHREAD- if
SIGHANDis set thenVMmust be set - if
THREADis set thenSIGHANDmust be set
Panics if the system call returns a value that neither indicates failure nor is convertible
to pid_t which could happen on overflow due to different type sizes. This is a
bug in the Linux kernel or the libc bindings used by this crate.
Sourcepub unsafe fn call_unchecked(&mut self) -> c_long
pub unsafe fn call_unchecked(&mut self) -> c_long
Performs the system call.
Like call but never errors or panics. Forwards the return value of the system
call.
Sourcepub fn as_clone_args(&mut self) -> CloneArgs
pub fn as_clone_args(&mut self) -> CloneArgs
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Clone3<'a>
impl<'a> !RefUnwindSafe for Clone3<'a>
impl<'a> !Send for Clone3<'a>
impl<'a> !Sync for Clone3<'a>
impl<'a> Unpin for Clone3<'a>
impl<'a> !UnwindSafe for Clone3<'a>
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