pub struct ProcessExit {
pub kind: ProcessExitKind,
pub owner: *mut (),
}Fields§
§kind: ProcessExitKind§owner: *mut ()Implementations§
Source§impl ProcessExit
impl ProcessExit
Sourcepub unsafe fn new<T: ?Sized>(kind: ProcessExitKind, owner: *mut T) -> Self
pub unsafe fn new<T: ?Sized>(kind: ProcessExitKind, owner: *mut T) -> Self
SAFETY: owner must be a live *mut T where T is the
concrete type the kind variant’s link_impl_*! was written
for, and must remain live for every dispatch through the
returned handle. This is the only place the caller writes
unsafe for this interface — the dispatch methods are safe
given this precondition.
pub fn is(&self, kind: ProcessExitKind) -> bool
Source§impl ProcessExit
impl ProcessExit
pub fn on_process_exit( &self, process: &mut Process, status: Status, rusage: &Rusage, )
Trait Implementations§
Source§impl Clone for ProcessExit
impl Clone for ProcessExit
Source§fn clone(&self) -> ProcessExit
fn clone(&self) -> ProcessExit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProcessExit
Auto Trait Implementations§
impl !Send for ProcessExit
impl !Sync for ProcessExit
impl Freeze for ProcessExit
impl RefUnwindSafe for ProcessExit
impl Unpin for ProcessExit
impl UnsafeUnpin for ProcessExit
impl UnwindSafe for ProcessExit
Blanket Implementations§
Source§impl<T> AsCtxPtr for Twhere
T: ?Sized,
impl<T> AsCtxPtr for Twhere
T: ?Sized,
Source§fn as_ctx_ptr(&self) -> *mut Selfwhere
Self: Sized,
fn as_ctx_ptr(&self) -> *mut Selfwhere
Self: Sized,
self’s address as *mut Self for deferred-task / scopeguard /
ref_guard ctx slots. The closures/trampolines deref it as shared
(&*p) — every method they reach is &self post-R-2, so no write
provenance is required; the *mut spelling is purely to match the
existing DerefOnDrop / HasAutoFlush / RefCount ABI.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