pub struct Directory {
pub name: Option<String>,
pub source_path: Option<String>,
pub rights: Option<Operations>,
}
Expand description
Declares a directory capability backed by this component.
To learn more about directories, see: https://fuchsia.dev/fuchsia-src/glossary#directory
Fields§
§name: Option<String>
§source_path: Option<String>
§rights: Option<Operations>
Trait Implementations§
Source§impl Encodable for Directory
impl Encodable for Directory
Source§type Encoded = WireDirectory
type Encoded = WireDirectory
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 TakeFrom<WireDirectory> for Directory
impl TakeFrom<WireDirectory> for Directory
Source§fn take_from(from: &WireDirectory) -> Self
fn take_from(from: &WireDirectory) -> 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 Directory
impl RefUnwindSafe for Directory
impl Send for Directory
impl Sync for Directory
impl Unpin for Directory
impl UnwindSafe for Directory
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