pub struct NameInfo {
pub path: String,
pub directory: ClientEnd<DirectoryMarker>,
}
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
Path at which to install the associated directory.
Must be an absolute path (i.e., start with ‘/’).
directory: ClientEnd<DirectoryMarker>
The associated directory.
Trait Implementations§
Source§impl Decode<NameInfo, DefaultFuchsiaResourceDialect> for NameInfo
impl Decode<NameInfo, DefaultFuchsiaResourceDialect> for NameInfo
Source§impl<T0: Encode<BoundedString<4095>, DefaultFuchsiaResourceDialect>, T1: Encode<Endpoint<ClientEnd<DirectoryMarker>>, DefaultFuchsiaResourceDialect>> Encode<NameInfo, DefaultFuchsiaResourceDialect> for (T0, T1)
impl<T0: Encode<BoundedString<4095>, DefaultFuchsiaResourceDialect>, T1: Encode<Endpoint<ClientEnd<DirectoryMarker>>, DefaultFuchsiaResourceDialect>> Encode<NameInfo, DefaultFuchsiaResourceDialect> for (T0, T1)
Source§impl Ord for NameInfo
impl Ord for NameInfo
Source§impl PartialOrd for NameInfo
impl PartialOrd for NameInfo
Source§impl ResourceTypeMarker for NameInfo
impl ResourceTypeMarker for NameInfo
Source§type Borrowed<'a> = &'a mut NameInfo
type Borrowed<'a> = &'a mut NameInfo
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &mut Self::Owned
. There are three cases: Read moreSource§fn take_or_borrow<'a>(
value: &'a mut <Self as TypeMarker>::Owned,
) -> Self::Borrowed<'a>
fn take_or_borrow<'a>( value: &'a mut <Self as TypeMarker>::Owned, ) -> Self::Borrowed<'a>
Cheaply converts from
&mut Self::Owned
to Self::Borrowed
. For
HandleBased
types this is “take” (it returns an owned handle and
replaces value
with Handle::invalid
), and for all other types it is
“borrow” (just converts from one reference to another).Source§impl TypeMarker for NameInfo
impl TypeMarker for NameInfo
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.impl Eq for NameInfo
impl Standalone<DefaultFuchsiaResourceDialect> for NameInfo
impl StructuralPartialEq for NameInfo
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