pub enum EventPayload {
CapabilityRequested(CapabilityRequestedPayload),
Purged(PurgedPayload),
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)
Discovered(DiscoveredPayload)
Destroyed(DestroyedPayload)
Resolved(ResolvedPayload)
Started(StartedPayload)
Stopped(StoppedPayload)
DebugStarted(DebugStartedPayload)
Unresolved(UnresolvedPayload)
UnknownOrdinal_(u64)
Implementations§
Source§impl EventPayload
impl EventPayload
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl CompatFrom<EventPayload> for EventPayload
impl CompatFrom<EventPayload> for EventPayload
Source§fn compat_from(value: EventPayload) -> Self
fn compat_from(value: EventPayload) -> Self
Converts
value into a value of this type.Source§impl CompatFrom<EventPayload> for EventPayload
impl CompatFrom<EventPayload> for EventPayload
Source§fn compat_from(value: EventPayload) -> Self
fn compat_from(value: EventPayload) -> Self
Converts
value into a value of this type.Source§impl Debug for EventPayload
impl Debug for EventPayload
Source§impl<___E> Encode<EventPayload<'static>, ___E> for EventPayloadwhere
___E: InternalHandleEncoder + ?Sized + Encoder + HandleEncoder,
impl<___E> Encode<EventPayload<'static>, ___E> for EventPayloadwhere
___E: InternalHandleEncoder + ?Sized + Encoder + HandleEncoder,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<EventPayload<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<EventPayload<'static>>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<___E> EncodeOption<EventPayload<'static>, ___E> for EventPayload
impl<___E> EncodeOption<EventPayload<'static>, ___E> for EventPayload
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<EventPayload<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<EventPayload<'static>>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl<'de> FromWire<EventPayload<'de>> for EventPayload
impl<'de> FromWire<EventPayload<'de>> for EventPayload
Source§fn from_wire(wire: EventPayload<'de>) -> Self
fn from_wire(wire: EventPayload<'de>) -> Self
Converts the given
wire to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl<'de> FromWireOption<EventPayload<'de>> for Box<EventPayload>
impl<'de> FromWireOption<EventPayload<'de>> for Box<EventPayload>
Source§fn from_wire_option(wire: EventPayload<'de>) -> Option<Self>
fn from_wire_option(wire: EventPayload<'de>) -> Option<Self>
Converts the given
wire to an option of this type.Source§impl<'de> FromWireOption<EventPayload<'de>> for EventPayload
impl<'de> FromWireOption<EventPayload<'de>> for EventPayload
Source§fn from_wire_option(wire: EventPayload<'de>) -> Option<Self>
fn from_wire_option(wire: EventPayload<'de>) -> Option<Self>
Converts the given
wire to an option of this type.Source§impl PartialEq for EventPayload
impl PartialEq for EventPayload
impl StructuralPartialEq for EventPayload
Auto 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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T, W> FromWireOption<WireBox<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<WireBox<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: WireBox<'_, W>) -> Option<T>
fn from_wire_option(wire: WireBox<'_, W>) -> Option<T>
Converts the given
wire to an option of this type.§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]