pub enum StatusMessage {
Cluster(Box<ClusterStatusMessage>),
Worker(Box<WorkerStatusMessage>),
}Expand description
One status broadcast, from whichever endpoint the client watched.
The two shapes share no required field, so which one a payload is comes from the endpoint it arrived on rather than from the payload itself.
Variants§
Cluster(Box<ClusterStatusMessage>)
A gateway reporting on its whole cluster.
Worker(Box<WorkerStatusMessage>)
A single worker reporting on itself.
Implementations§
Source§impl StatusMessage
impl StatusMessage
Sourcepub fn cluster(&self) -> Option<&ClusterStatusMessage>
pub fn cluster(&self) -> Option<&ClusterStatusMessage>
The cluster summary, when this message came from a gateway.
Sourcepub fn worker(&self) -> Option<&WorkerStatusMessage>
pub fn worker(&self) -> Option<&WorkerStatusMessage>
The worker report, when this message came from a worker.
Trait Implementations§
Source§impl Clone for StatusMessage
impl Clone for StatusMessage
Source§fn clone(&self) -> StatusMessage
fn clone(&self) -> StatusMessage
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 StatusMessage
impl Debug for StatusMessage
Source§impl PartialEq for StatusMessage
impl PartialEq for StatusMessage
Source§impl Serialize for StatusMessage
impl Serialize for StatusMessage
impl StructuralPartialEq for StatusMessage
Auto Trait Implementations§
impl Freeze for StatusMessage
impl RefUnwindSafe for StatusMessage
impl Send for StatusMessage
impl Sync for StatusMessage
impl Unpin for StatusMessage
impl UnsafeUnpin for StatusMessage
impl UnwindSafe for StatusMessage
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