pub struct CapabilityRef {
pub name: String,
}
Expand description
A reference to a capability declared in this component.
Fields§
§name: String
Trait Implementations§
Source§impl Clone for CapabilityRef
impl Clone for CapabilityRef
Source§fn clone(&self) -> CapabilityRef
fn clone(&self) -> CapabilityRef
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 CapabilityRef
impl Debug for CapabilityRef
Source§impl Encodable for CapabilityRef
impl Encodable for CapabilityRef
Source§type Encoded = WireCapabilityRef
type Encoded = WireCapabilityRef
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<CapabilityRef>
impl EncodableOption for Box<CapabilityRef>
Source§type EncodedOption = WireBox<WireCapabilityRef>
type EncodedOption = WireBox<WireCapabilityRef>
The wire type for the optional value.
Source§impl<___E> Encode<___E> for CapabilityRefwhere
___E: InternalHandleEncoder + ?Sized + Encoder,
impl<___E> Encode<___E> for CapabilityRefwhere
___E: InternalHandleEncoder + ?Sized + Encoder,
Source§impl<___E> EncodeOption<___E> for Box<CapabilityRef>where
___E: Encoder + ?Sized,
CapabilityRef: Encode<___E>,
impl<___E> EncodeOption<___E> for Box<CapabilityRef>where
___E: Encoder + ?Sized,
CapabilityRef: 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<WireCapabilityRef> for CapabilityRef
impl TakeFrom<WireCapabilityRef> for CapabilityRef
Source§fn take_from(from: &WireCapabilityRef) -> Self
fn take_from(from: &WireCapabilityRef) -> 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 CapabilityRef
impl RefUnwindSafe for CapabilityRef
impl Send for CapabilityRef
impl Sync for CapabilityRef
impl Unpin for CapabilityRef
impl UnwindSafe for CapabilityRef
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