Trait Status

Source
pub trait Status:
    Debug
    + Display
    + Sealed {
    // Required methods
    fn is_settled(&self) -> bool;
    fn sentiment(&self) -> StatusSentiment;
}
Expand description

Common operations for statuses.

Required Methods§

Source

fn is_settled(&self) -> bool

Indicates whether or not a status is settled.

A settled status is one that won’t change again during the current stack operation.

Source

fn sentiment(&self) -> StatusSentiment

Indicates the sentiment of the status.

This is obviously a bit fuzzy, but in general:

  • Successful terminal statuses are positive.
  • Failed terminal statuses and rollback statuses are negative.
  • All other statuses are neutral.

Implementors§