pub enum Capability {
Service(Service),
Protocol(Protocol),
Directory(Directory),
Storage(Storage),
Runner(Runner),
Resolver(Resolver),
EventStream(EventStream),
Dictionary(Dictionary),
Config(Configuration),
UnknownOrdinal_(u64),
}
Expand description
Declares a capability defined by this component.
Variants§
Service(Service)
Protocol(Protocol)
Directory(Directory)
Storage(Storage)
Runner(Runner)
Resolver(Resolver)
EventStream(EventStream)
Dictionary(Dictionary)
Config(Configuration)
UnknownOrdinal_(u64)
Trait Implementations§
Source§impl Clone for Capability
impl Clone for Capability
Source§fn clone(&self) -> Capability
fn clone(&self) -> Capability
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 Capability
impl Debug for Capability
Source§impl Encodable for Capability
impl Encodable for Capability
Source§type Encoded = WireCapability
type Encoded = WireCapability
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 EncodableOption for Box<Capability>
impl EncodableOption for Box<Capability>
Source§type EncodedOption = WireOptionalCapability
type EncodedOption = WireOptionalCapability
The wire type for the optional value.
Source§impl<___E> Encode<___E> for Capabilitywhere
___E: InternalHandleEncoder + ?Sized + Encoder,
impl<___E> Encode<___E> for Capabilitywhere
___E: InternalHandleEncoder + ?Sized + Encoder,
Source§impl<___E> EncodeOption<___E> for Box<Capability>where
___E: ?Sized,
Capability: Encode<___E>,
impl<___E> EncodeOption<___E> for Box<Capability>where
___E: ?Sized,
Capability: Encode<___E>,
Source§fn encode_option(
this: Option<&mut Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Self::EncodedOption>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<&mut Self>, encoder: &mut ___E, out: &mut MaybeUninit<Self::EncodedOption>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl TakeFrom<WireCapability> for Capability
impl TakeFrom<WireCapability> for Capability
Source§fn take_from(from: &WireCapability) -> Self
fn take_from(from: &WireCapability) -> 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 Capability
impl RefUnwindSafe for Capability
impl Send for Capability
impl Sync for Capability
impl Unpin for Capability
impl UnwindSafe for Capability
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