pub struct DictionaryCapability { /* private fields */ }
Expand description
A dictionary capability, which may be routed between components. Created by
Capability::dictionary
.
Implementations§
source§impl DictionaryCapability
impl DictionaryCapability
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 dictionary capability as.
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 DictionaryCapability
impl Clone for DictionaryCapability
source§fn clone(&self) -> DictionaryCapability
fn clone(&self) -> DictionaryCapability
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DictionaryCapability
impl Debug for DictionaryCapability
source§impl Into<Capability> for DictionaryCapability
impl Into<Capability> for DictionaryCapability
source§fn into(self) -> Capability
fn into(self) -> Capability
Converts this type into the (usually inferred) input type.
source§impl PartialEq for DictionaryCapability
impl PartialEq for DictionaryCapability
source§fn eq(&self, other: &DictionaryCapability) -> bool
fn eq(&self, other: &DictionaryCapability) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DictionaryCapability
Auto Trait Implementations§
impl Freeze for DictionaryCapability
impl RefUnwindSafe for DictionaryCapability
impl Send for DictionaryCapability
impl Sync for DictionaryCapability
impl Unpin for DictionaryCapability
impl UnwindSafe for DictionaryCapability
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> 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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)