pub enum Expose {
Service(ExposeService),
Protocol(ExposeProtocol),
Directory(ExposeDirectory),
Runner(ExposeRunner),
Resolver(ExposeResolver),
Dictionary(ExposeDictionary),
Config(ExposeConfiguration),
UnknownOrdinal_(u64),
}
Expand description
Declares a capability exposed to either a component’s containing realm or to the framework. For example, a legacy service exposed by the component at runtime.
Variants§
Service(ExposeService)
Protocol(ExposeProtocol)
Directory(ExposeDirectory)
Runner(ExposeRunner)
Resolver(ExposeResolver)
Dictionary(ExposeDictionary)
Config(ExposeConfiguration)
UnknownOrdinal_(u64)
Trait Implementations§
Source§impl Encodable for Expose
impl Encodable for Expose
Source§type Encoded = WireExpose
type Encoded = WireExpose
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<Expose>
impl EncodableOption for Box<Expose>
Source§type EncodedOption = WireOptionalExpose
type EncodedOption = WireOptionalExpose
The wire type for the optional value.
Source§impl<___E> EncodeOption<___E> for Box<Expose>
impl<___E> EncodeOption<___E> for Box<Expose>
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<WireExpose> for Expose
impl TakeFrom<WireExpose> for Expose
Source§fn take_from(from: &WireExpose) -> Self
fn take_from(from: &WireExpose) -> 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 Expose
impl RefUnwindSafe for Expose
impl Send for Expose
impl Sync for Expose
impl Unpin for Expose
impl UnwindSafe for Expose
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