pub enum PlatformEvent {
ResourceExhausted {
network_id: NetworkId,
},
Possession {
network_id: NetworkId,
},
WorkspaceManifest {
manifest: BTreeMap<String, String>,
},
Interaction {
source: NetworkId,
target: NetworkId,
amount: u16,
},
Termination {
target: NetworkId,
},
Reinitialization {
target: NetworkId,
x: f32,
y: f32,
},
PayloadCollected {
network_id: NetworkId,
amount: u16,
},
}Expand description
A reliable discrete platform event (Phase 1 / VS-02).
Variants§
ResourceExhausted
A resource was completely exhausted of its payload.
Possession
Explicitly informs a client that they now own/control a specific entity.
WorkspaceManifest
Sends extensible server-side metadata (versions, counters, debug data).
Interaction
Interaction (e.g. damage) applied to an entity.
Termination
An entity has been terminated.
Reinitialization
An entity has been reinitialized.
PayloadCollected
A data drop was collected by an agent.
Implementations§
Source§impl PlatformEvent
impl PlatformEvent
Sourcepub fn into_wire_event(self) -> WireEvent
pub fn into_wire_event(self) -> WireEvent
Converts a PlatformEvent into a WireEvent.
Trait Implementations§
Source§impl Clone for PlatformEvent
impl Clone for PlatformEvent
Source§fn clone(&self) -> PlatformEvent
fn clone(&self) -> PlatformEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PlatformEvent
impl Debug for PlatformEvent
Source§impl<'de> Deserialize<'de> for PlatformEvent
impl<'de> Deserialize<'de> for PlatformEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PlatformEvent
impl PartialEq for PlatformEvent
Source§fn eq(&self, other: &PlatformEvent) -> bool
fn eq(&self, other: &PlatformEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PlatformEvent
impl Serialize for PlatformEvent
impl StructuralPartialEq for PlatformEvent
Auto Trait Implementations§
impl Freeze for PlatformEvent
impl RefUnwindSafe for PlatformEvent
impl Send for PlatformEvent
impl Sync for PlatformEvent
impl Unpin for PlatformEvent
impl UnsafeUnpin for PlatformEvent
impl UnwindSafe for PlatformEvent
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