pub struct DirectoryCapability { /* private fields */ }
Expand description
A directory capability, which may be routed between components. Created by
Capability::directory
.
Implementations§
source§impl DirectoryCapability
impl DirectoryCapability
sourcepub fn as_(self, as_: impl Into<String>) -> Self
pub fn as_(self, as_: impl Into<String>) -> Self
The name the targets will see the directory capability as.
sourcepub fn weak(self) -> Self
pub fn weak(self) -> Self
Marks any offers involved in this route as “weak”, which will cause this route to be ignored when determining shutdown ordering.
sourcepub fn rights(self, rights: Operations) -> Self
pub fn rights(self, rights: Operations) -> Self
The rights the target will be allowed to use when accessing the directory.
sourcepub fn subdir(self, subdir: impl Into<String>) -> Self
pub fn subdir(self, subdir: impl Into<String>) -> Self
The sub-directory of the directory that the target will be given access to.
sourcepub fn path(self, path: impl Into<String>) -> Self
pub fn path(self, path: impl Into<String>) -> Self
The path at which this directory will be provided or used. Only relevant if the route’s source or target is a local component.
sourcepub fn optional(self) -> Self
pub fn optional(self) -> Self
Marks the availability of this capability as “optional”, which allows either this or a
parent offer to have a source of void
.
sourcepub fn availability_same_as_target(self) -> Self
pub fn availability_same_as_target(self) -> Self
Marks the availability of this capability to be the same as the availability expectations set in the target.
Trait Implementations§
source§impl Clone for DirectoryCapability
impl Clone for DirectoryCapability
source§fn clone(&self) -> DirectoryCapability
fn clone(&self) -> DirectoryCapability
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DirectoryCapability
impl Debug for DirectoryCapability
source§impl Into<Capability> for DirectoryCapability
impl Into<Capability> for DirectoryCapability
source§fn into(self) -> Capability
fn into(self) -> Capability
source§impl PartialEq for DirectoryCapability
impl PartialEq for DirectoryCapability
source§fn eq(&self, other: &DirectoryCapability) -> bool
fn eq(&self, other: &DirectoryCapability) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DirectoryCapability
Auto Trait Implementations§
impl Freeze for DirectoryCapability
impl RefUnwindSafe for DirectoryCapability
impl Send for DirectoryCapability
impl Sync for DirectoryCapability
impl Unpin for DirectoryCapability
impl UnwindSafe for DirectoryCapability
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)