pub enum Offer {
Service(OfferService),
Protocol(OfferProtocol),
Directory(OfferDirectory),
Storage(OfferStorage),
Runner(OfferRunner),
Resolver(OfferResolver),
EventStream(OfferEventStream),
Dictionary(OfferDictionary),
Config(OfferConfiguration),
UnknownOrdinal_(u64),
}
Expand description
Declares a capability offered by a component to one of its children, which may have been offered by the component’s containing realm, the component itself, or one of its other children.
Variants§
Service(OfferService)
Protocol(OfferProtocol)
Directory(OfferDirectory)
Storage(OfferStorage)
Runner(OfferRunner)
Resolver(OfferResolver)
EventStream(OfferEventStream)
Dictionary(OfferDictionary)
Config(OfferConfiguration)
UnknownOrdinal_(u64)
Trait Implementations§
Source§impl EncodableOption for Box<Offer>
impl EncodableOption for Box<Offer>
Source§type EncodedOption = WireOptionalOffer
type EncodedOption = WireOptionalOffer
The wire type for the optional value.
Source§impl<___E> EncodeOption<___E> for Box<Offer>
impl<___E> EncodeOption<___E> for Box<Offer>
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<WireOffer> for Offer
impl TakeFrom<WireOffer> for Offer
Source§fn take_from(from: &WireOffer) -> Self
fn take_from(from: &WireOffer) -> 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 Offer
impl RefUnwindSafe for Offer
impl Send for Offer
impl Sync for Offer
impl Unpin for Offer
impl UnwindSafe for Offer
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