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
type Encoded = WireNameInfo
The wire type for the value.
§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§impl EncodableOption for Box<NameInfo>
impl EncodableOption for Box<NameInfo>
Source§type EncodedOption = WireBox<WireNameInfo>
type EncodedOption = WireBox<WireNameInfo>
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 Box<NameInfo>
impl<___E> EncodeOption<___E> for Box<NameInfo>
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<WireNameInfo> for NameInfo
impl TakeFrom<WireNameInfo> for NameInfo
Source§fn take_from(from: &WireNameInfo) -> Self
fn take_from(from: &WireNameInfo) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§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 moreAuto 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