#[repr(C)]pub struct HandleInfo {
pub handle: Handle,
pub id: u32,
}
Expand description
Information about a handle provided to a process at startup.
Processes are given a set of initial handles as part of the bootstrapping sequence. Some of these handles are associated with process argument identifiers that designate their intended use by the new process.
This structure represents one such handle and its associated identifier.
Fields§
§handle: Handle
§id: u32
Trait Implementations§
Source§impl Debug for HandleInfo
impl Debug for HandleInfo
Source§impl Encodable for HandleInfo
impl Encodable for HandleInfo
Source§const COPY_OPTIMIZATION: CopyOptimization<Self>
const COPY_OPTIMIZATION: CopyOptimization<Self>
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§type Encoded = WireHandleInfo
type Encoded = WireHandleInfo
The wire type for the value.
Source§impl EncodableOption for Box<HandleInfo>
impl EncodableOption for Box<HandleInfo>
Source§type EncodedOption = WireBox<WireHandleInfo>
type EncodedOption = WireBox<WireHandleInfo>
The wire type for the optional value.
Source§impl<___E> Encode<___E> for HandleInfowhere
___E: InternalHandleEncoder + ?Sized + HandleEncoder,
impl<___E> Encode<___E> for HandleInfowhere
___E: InternalHandleEncoder + ?Sized + HandleEncoder,
Source§impl<___E> EncodeOption<___E> for Box<HandleInfo>where
___E: Encoder + ?Sized,
HandleInfo: Encode<___E>,
impl<___E> EncodeOption<___E> for Box<HandleInfo>where
___E: Encoder + ?Sized,
HandleInfo: Encode<___E>,
Source§fn encode_option(
this: Option<&mut Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Self::EncodedOption>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<&mut Self>, encoder: &mut ___E, out: &mut MaybeUninit<Self::EncodedOption>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl TakeFrom<WireHandleInfo> for HandleInfo
impl TakeFrom<WireHandleInfo> for HandleInfo
Source§const COPY_OPTIMIZATION: CopyOptimization<Self>
const COPY_OPTIMIZATION: CopyOptimization<Self>
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreSource§fn take_from(from: &WireHandleInfo) -> Self
fn take_from(from: &WireHandleInfo) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.Auto Trait Implementations§
impl Freeze for HandleInfo
impl RefUnwindSafe for HandleInfo
impl Send for HandleInfo
impl Sync for HandleInfo
impl Unpin for HandleInfo
impl UnwindSafe for HandleInfo
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