pub struct UnixSessionReceipt { /* private fields */ }Expand description
Opaque, single-use proof that the prepared child acquired a new session.
The receipt is minted only from the private acknowledgement channel. It cannot be constructed from a PID, boolean, enum, or post-spawn observation.
Implementations§
Source§impl UnixSessionReceipt
impl UnixSessionReceipt
pub fn child_pid(&self) -> u32
pub fn process_group_id(&self) -> u32
pub fn session_id(&self) -> u32
pub fn session_kind(&self) -> &'static str
pub fn identifier_provenance(&self) -> &'static str
Trait Implementations§
Auto Trait Implementations§
impl Forget for UnixSessionReceipt
impl Freeze for UnixSessionReceipt
impl Move for UnixSessionReceipt
impl RefUnwindSafe for UnixSessionReceipt
impl Send for UnixSessionReceipt
impl Sync for UnixSessionReceipt
impl Unpin for UnixSessionReceipt
impl UnsafeUnpin for UnixSessionReceipt
impl UnwindSafe for UnixSessionReceipt
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