pub struct NamespaceEntry {
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<NamespaceEntry> for NamespaceEntry
impl CompatFrom<NamespaceEntry> for NamespaceEntry
Source§fn compat_from(value: NamespaceEntry) -> Self
fn compat_from(value: NamespaceEntry) -> Self
Converts
value into a value of this type.Source§impl CompatFrom<NamespaceEntry> for NamespaceEntry
impl CompatFrom<NamespaceEntry> for NamespaceEntry
Source§fn compat_from(value: NamespaceEntry) -> Self
fn compat_from(value: NamespaceEntry) -> Self
Converts
value into a value of this type.Source§impl Debug for NamespaceEntry
impl Debug for NamespaceEntry
Source§impl Default for NamespaceEntry
impl Default for NamespaceEntry
Source§fn default() -> NamespaceEntry
fn default() -> NamespaceEntry
Returns the “default value” for a type. Read more
Source§impl<___E> Encode<NamespaceEntry<'static>, ___E> for NamespaceEntrywhere
___E: Encoder + ?Sized + HandleEncoder,
impl<___E> Encode<NamespaceEntry<'static>, ___E> for NamespaceEntrywhere
___E: Encoder + ?Sized + HandleEncoder,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<NamespaceEntry<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<NamespaceEntry<'static>>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<'de> FromWire<NamespaceEntry<'de>> for NamespaceEntry
impl<'de> FromWire<NamespaceEntry<'de>> for NamespaceEntry
Source§fn from_wire(wire_: NamespaceEntry<'de>) -> Self
fn from_wire(wire_: NamespaceEntry<'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 NamespaceEntry
impl PartialEq for NamespaceEntry
impl StructuralPartialEq for NamespaceEntry
Auto 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
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]