pub struct NameInfo {
pub path: String,
pub directory: ClientEnd<Channel, Directory>,
}
Expand description
A namespace entry 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 paths that designate their intended use by the new process as namespace entries.
This structure represents one such handle and its associated namespace path.
Fields§
§path: String
§directory: ClientEnd<Channel, Directory>
Trait Implementations§
Source§impl Encodable for NameInfo
impl Encodable for NameInfo
Source§type Encoded = WireNameInfo<'static>
type Encoded = WireNameInfo<'static>
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self, Self::Encoded> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, Self::Encoded> = _
Whether the conversion from
Self
to Self::Encoded
is equivalent to copying the raw bytes
of Self
. Read moreSource§impl EncodableOption for NameInfo
impl EncodableOption for NameInfo
Source§type EncodedOption = WireBox<'static, WireNameInfo<'static>>
type EncodedOption = WireBox<'static, WireNameInfo<'static>>
The wire type for the optional value.
Source§impl<___E> Encode<___E> for NameInfowhere
___E: InternalHandleEncoder + ?Sized + Encoder + HandleEncoder,
impl<___E> Encode<___E> for NameInfowhere
___E: InternalHandleEncoder + ?Sized + Encoder + HandleEncoder,
Source§impl<___E> EncodeOption<___E> for NameInfo
impl<___E> EncodeOption<___E> for NameInfo
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<'de> FromWire<WireNameInfo<'de>> for NameInfo
impl<'de> FromWire<WireNameInfo<'de>> for NameInfo
Source§fn from_wire(wire: WireNameInfo<'de>) -> Self
fn from_wire(wire: WireNameInfo<'de>) -> Self
Converts the given
wire
to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Auto Trait Implementations§
impl Freeze for NameInfo
impl RefUnwindSafe for NameInfo
impl Send for NameInfo
impl Sync for NameInfo
impl Unpin for NameInfo
impl UnwindSafe for NameInfo
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.