pub struct ComponentNamespaceEntry {
pub path: Option<String>,
pub directory: Option<ClientEnd<Directory, Channel>>,
}
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<Directory, Channel>>
Trait Implementations§
Source§impl CompatFrom<ComponentNamespaceEntry> for ComponentNamespaceEntry
impl CompatFrom<ComponentNamespaceEntry> for ComponentNamespaceEntry
Source§fn compat_from(value: ComponentNamespaceEntry) -> Self
fn compat_from(value: ComponentNamespaceEntry) -> Self
Converts
value
into a value of this type.Source§impl CompatFrom<ComponentNamespaceEntry> for ComponentNamespaceEntry
impl CompatFrom<ComponentNamespaceEntry> for ComponentNamespaceEntry
Source§fn compat_from(value: ComponentNamespaceEntry) -> Self
fn compat_from(value: ComponentNamespaceEntry) -> Self
Converts
value
into a value of this type.Source§impl Debug for ComponentNamespaceEntry
impl Debug for ComponentNamespaceEntry
Source§impl Default for ComponentNamespaceEntry
impl Default for ComponentNamespaceEntry
Source§fn default() -> ComponentNamespaceEntry
fn default() -> ComponentNamespaceEntry
Returns the “default value” for a type. Read more
Source§impl Encodable for ComponentNamespaceEntry
impl Encodable for ComponentNamespaceEntry
Source§type Encoded = WireComponentNamespaceEntry<'static>
type Encoded = WireComponentNamespaceEntry<'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<___E> Encode<___E> for ComponentNamespaceEntrywhere
___E: Encoder + ?Sized + HandleEncoder,
impl<___E> Encode<___E> for ComponentNamespaceEntrywhere
___E: Encoder + ?Sized + HandleEncoder,
Source§impl<'de> FromWire<WireComponentNamespaceEntry<'de>> for ComponentNamespaceEntry
impl<'de> FromWire<WireComponentNamespaceEntry<'de>> for ComponentNamespaceEntry
Source§fn from_wire(wire_: WireComponentNamespaceEntry<'de>) -> Self
fn from_wire(wire_: WireComponentNamespaceEntry<'de>) -> Self
Converts the given
wire
to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl PartialEq for ComponentNamespaceEntry
impl PartialEq for ComponentNamespaceEntry
impl StructuralPartialEq for ComponentNamespaceEntry
Auto Trait Implementations§
impl Freeze for ComponentNamespaceEntry
impl RefUnwindSafe for ComponentNamespaceEntry
impl Send for ComponentNamespaceEntry
impl Sync for ComponentNamespaceEntry
impl Unpin for ComponentNamespaceEntry
impl UnwindSafe for ComponentNamespaceEntry
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§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.§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T
to [Self
]