pub enum EventPayload {
CapabilityRequested(CapabilityRequestedPayload),
Purged(PurgedPayload),
DirectoryReady(DirectoryReadyPayload),
Discovered(DiscoveredPayload),
Destroyed(DestroyedPayload),
Resolved(ResolvedPayload),
Started(StartedPayload),
Stopped(StoppedPayload),
DebugStarted(DebugStartedPayload),
Unresolved(UnresolvedPayload),
UnknownOrdinal_(u64),
}
Expand description
Encapsulates additional data/protocols for some event types.
Variants§
CapabilityRequested(CapabilityRequestedPayload)
Purged(PurgedPayload)
DirectoryReady(DirectoryReadyPayload)
Discovered(DiscoveredPayload)
Destroyed(DestroyedPayload)
Resolved(ResolvedPayload)
Started(StartedPayload)
Stopped(StoppedPayload)
DebugStarted(DebugStartedPayload)
Unresolved(UnresolvedPayload)
UnknownOrdinal_(u64)
Trait Implementations§
Source§impl Debug for EventPayload
impl Debug for EventPayload
Source§impl Encodable for EventPayload
impl Encodable for EventPayload
Source§type Encoded = WireEventPayload
type Encoded = WireEventPayload
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<EventPayload>
impl EncodableOption for Box<EventPayload>
Source§type EncodedOption = WireOptionalEventPayload
type EncodedOption = WireOptionalEventPayload
The wire type for the optional value.
Source§impl<___E> Encode<___E> for EventPayloadwhere
___E: InternalHandleEncoder + ?Sized + Encoder + HandleEncoder,
impl<___E> Encode<___E> for EventPayloadwhere
___E: InternalHandleEncoder + ?Sized + Encoder + HandleEncoder,
Source§impl<___E> EncodeOption<___E> for Box<EventPayload>where
___E: ?Sized,
EventPayload: Encode<___E>,
impl<___E> EncodeOption<___E> for Box<EventPayload>where
___E: ?Sized,
EventPayload: 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<WireEventPayload> for EventPayload
impl TakeFrom<WireEventPayload> for EventPayload
Source§fn take_from(from: &WireEventPayload) -> Self
fn take_from(from: &WireEventPayload) -> 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 EventPayload
impl RefUnwindSafe for EventPayload
impl Send for EventPayload
impl Sync for EventPayload
impl Unpin for EventPayload
impl UnwindSafe for EventPayload
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