[][src]Enum latticeclient::BusEvent

pub enum BusEvent {
    HostStarted(String),
    HostStopped(String),
    ActorStarting {
        actor: String,
        host: String,
    },
    ActorStarted {
        actor: String,
        host: String,
    },
    ActorStopped {
        actor: String,
        host: String,
    },
    ActorUpdating {
        actor: String,
        host: String,
    },
    ActorUpdateComplete {
        actor: String,
        success: bool,
        host: String,
    },
    ProviderLoaded {
        capid: String,
        instance_name: String,
        host: String,
    },
    ProviderRemoved {
        capid: String,
        instance_name: String,
        host: String,
    },
    ActorBindingCreated {
        host: String,
        actor: String,
        capid: String,
        instance_name: String,
    },
    ActorBindingRemoved {
        host: String,
        actor: String,
        capid: String,
        instance_name: String,
    },
    ActorBecameHealthy {
        actor: String,
        host: String,
    },
    ActorBecameUnhealthy {
        actor: String,
        host: String,
    },
}

Represents an event that may occur on a bus of connected hosts. Timestamps, identifiers, and other metadata will be provided by a CloudEvent envelope.

Variants

HostStarted(String)

A host process has fully started and is ready for work

HostStopped(String)

A host has stopped on a predictable manner

ActorStarting

An actor has begun the loading/parsing phase

Fields of ActorStarting

actor: Stringhost: String
ActorStarted

An actor has started and is ready to receive messages

Fields of ActorStarted

actor: Stringhost: String
ActorStopped

An actor has stopped in a predictable manner

Fields of ActorStopped

actor: Stringhost: String
ActorUpdating

A live update/hot swap has begun on this actor

Fields of ActorUpdating

actor: Stringhost: String
ActorUpdateComplete

A live update/hot swap has completed (or failed)

Fields of ActorUpdateComplete

actor: Stringsuccess: boolhost: String
ProviderLoaded

A capability provider has been loaded on a host

Fields of ProviderLoaded

capid: Stringinstance_name: Stringhost: String
ProviderRemoved

A capability provider has been removed from a host

Fields of ProviderRemoved

capid: Stringinstance_name: Stringhost: String
ActorBindingCreated

A binding between an actor and a named capability provider instance was created. For security reasons the raw data of the individual bound configuration values is not published in this event and must be queried via lattice protocol

Fields of ActorBindingCreated

host: Stringactor: Stringcapid: Stringinstance_name: String
ActorBindingRemoved

A binding was removed

Fields of ActorBindingRemoved

host: Stringactor: Stringcapid: Stringinstance_name: String
ActorBecameHealthy

A previously unhealthy actor became healthy. This is a higher-order event, not generated from inside wascc host

Fields of ActorBecameHealthy

actor: Stringhost: String
ActorBecameUnhealthy

A previously healthy actor became unhealthy. This is a higher-order event, not generated from inside wascc host

Fields of ActorBecameUnhealthy

actor: Stringhost: String

Implementations

impl BusEvent[src]

pub fn event_type(&self) -> String[src]

pub fn subject(&self) -> String[src]

Trait Implementations

impl Clone for BusEvent[src]

impl Debug for BusEvent[src]

impl<'de> Deserialize<'de> for BusEvent[src]

impl Display for BusEvent[src]

impl From<BusEvent> for CloudEvent[src]

impl PartialEq<BusEvent> for BusEvent[src]

impl Serialize for BusEvent[src]

impl StructuralPartialEq for BusEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,