pub struct NamespaceEntry {
pub path: Option<String>,
pub directory: Option<ClientEnd<Channel, Directory>>,
}
Expand description
A single component namespace entry, which describes a namespace mount point
(path
) and the directory backing it (directory
). This type is usually
composed inside a vector. See ComponentStartInfo.ns
for more details.
Fields§
§path: Option<String>
§directory: Option<ClientEnd<Channel, Directory>>
Trait Implementations§
Source§impl Debug for NamespaceEntry
impl Debug for NamespaceEntry
Source§impl Encodable for NamespaceEntry
impl Encodable for NamespaceEntry
Source§type Encoded = WireNamespaceEntry
type Encoded = WireNamespaceEntry
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<___E> Encode<___E> for NamespaceEntrywhere
___E: Encoder + ?Sized + HandleEncoder,
impl<___E> Encode<___E> for NamespaceEntrywhere
___E: Encoder + ?Sized + HandleEncoder,
Source§impl TakeFrom<WireNamespaceEntry> for NamespaceEntry
impl TakeFrom<WireNamespaceEntry> for NamespaceEntry
Source§fn take_from(from: &WireNamespaceEntry) -> Self
fn take_from(from: &WireNamespaceEntry) -> 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 NamespaceEntry
impl RefUnwindSafe for NamespaceEntry
impl Send for NamespaceEntry
impl Sync for NamespaceEntry
impl Unpin for NamespaceEntry
impl UnwindSafe for NamespaceEntry
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