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
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)