#[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, WireHandleInfo>
const COPY_OPTIMIZATION: CopyOptimization<Self, WireHandleInfo>
Whether the conversion from
Self
to Self::Encoded
is equivalent to copying the raw bytes
of Self
. Read moreSource§type Encoded = WireHandleInfo
type Encoded = WireHandleInfo
The wire type for the value.
Source§impl EncodableOption for HandleInfo
impl EncodableOption for HandleInfo
Source§type EncodedOption = WireBox<'static, WireHandleInfo>
type EncodedOption = WireBox<'static, 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 HandleInfowhere
___E: Encoder + ?Sized,
HandleInfo: Encode<___E>,
impl<___E> EncodeOption<___E> for HandleInfowhere
___E: Encoder + ?Sized,
HandleInfo: Encode<___E>,
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Self::EncodedOption>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<Self::EncodedOption>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl FromWire<WireHandleInfo> for HandleInfo
impl FromWire<WireHandleInfo> for HandleInfo
Source§const COPY_OPTIMIZATION: CopyOptimization<WireHandleInfo, Self>
const COPY_OPTIMIZATION: CopyOptimization<WireHandleInfo, Self>
Source§fn from_wire(wire: WireHandleInfo) -> Self
fn from_wire(wire: WireHandleInfo) -> Self
Converts the given
wire
to this type.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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T, W> FromWireOption<WireBox<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<WireBox<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: WireBox<'_, W>) -> Option<T>
fn from_wire_option(wire: WireBox<'_, W>) -> Option<T>
Converts the given
wire
to an option of this type.