pub struct ProtocolCapability { /* private fields */ }
Expand description
A protocol capability, which may be routed between components. Created by
Capability::protocol
.
Implementations§
source§impl ProtocolCapability
impl ProtocolCapability
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 path(self, path: impl Into<String>) -> Self
pub fn path(self, path: impl Into<String>) -> Self
The path at which this protocol capability will be provided or used. Only relevant if the route’s source or target is a local component, as these are the only components that realm builder will generate a modern component manifest for.
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 ProtocolCapability
impl Clone for ProtocolCapability
source§fn clone(&self) -> ProtocolCapability
fn clone(&self) -> ProtocolCapability
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 ProtocolCapability
impl Debug for ProtocolCapability
source§impl Into<Capability> for ProtocolCapability
impl Into<Capability> for ProtocolCapability
source§fn into(self) -> Capability
fn into(self) -> Capability
Converts this type into the (usually inferred) input type.
source§impl PartialEq for ProtocolCapability
impl PartialEq for ProtocolCapability
source§fn eq(&self, other: &ProtocolCapability) -> bool
fn eq(&self, other: &ProtocolCapability) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ProtocolCapability
Auto Trait Implementations§
impl Freeze for ProtocolCapability
impl RefUnwindSafe for ProtocolCapability
impl Send for ProtocolCapability
impl Sync for ProtocolCapability
impl Unpin for ProtocolCapability
impl UnwindSafe for ProtocolCapability
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
)