Enum wasmcloud_control_interface::events::ControlEvent [−][src]
pub enum ControlEvent { HostStarted, HostStopped, ActorStarted { actor: String, image_ref: Option<String>, }, ActorStopped { actor: String, }, ActorUpdateBegan { actor: String, old_revision: u32, new_revision: u32, }, ActorUpdateCompleted { actor: String, old_revision: u32, new_revision: u32, }, ProviderStarted { contract_id: String, link_name: String, provider_id: String, image_ref: Option<String>, }, ProviderStopped { contract_id: String, link_name: String, provider_id: String, }, Heartbeat { claims: Vec<Claims<Actor>>, entities: HashMap<String, RunState>, }, }
Represents an event that may occur on the lattice control interface. All timestamps are to be considered as Unix timestamps in UTC in seconds since the epoch.
Variants
Show fields
Fields of ActorStopped
actor: String
Show fields
Implementations
impl ControlEvent
[src]
impl ControlEvent
[src]pub fn into_published(self, origin: &str) -> PublishedEvent
[src]
Converts a control event into a published event with additional metadata
Trait Implementations
impl Clone for ControlEvent
[src]
impl Clone for ControlEvent
[src]fn clone(&self) -> ControlEvent
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for ControlEvent
[src]
impl<'de> Deserialize<'de> for ControlEvent
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<ControlEvent> for ControlEvent
[src]
impl PartialEq<ControlEvent> for ControlEvent
[src]fn eq(&self, other: &ControlEvent) -> bool
[src]
fn ne(&self, other: &ControlEvent) -> bool
[src]
impl Serialize for ControlEvent
[src]
impl Serialize for ControlEvent
[src]impl StructuralPartialEq for ControlEvent
[src]
impl StructuralPartialEq for ControlEvent
[src]Auto Trait Implementations
impl RefUnwindSafe for ControlEvent
impl RefUnwindSafe for ControlEvent
impl Send for ControlEvent
impl Send for ControlEvent
impl Sync for ControlEvent
impl Sync for ControlEvent
impl Unpin for ControlEvent
impl Unpin for ControlEvent
impl UnwindSafe for ControlEvent
impl UnwindSafe for ControlEvent
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,