Skip to main content

Status

Trait Status 

Source
pub trait Status {
    // Required method
    fn ok(&self) -> bool;

    // Provided method
    fn error(&self) -> Option<String> { ... }
}
Expand description

Common interface used by tracing to inspect a jig’s outcome without knowing whether the value is a Request, Response, or Branch.

Required Methods§

Source

fn ok(&self) -> bool

Returns true if the value represents a successful outcome.

Provided Methods§

Source

fn error(&self) -> Option<String>

Error message, if any. Defaults to None.

Implementors§

Source§

impl<Req, Resp> Status for Branch<Req, Resp>

Source§

impl<T> Status for Request<T>

Source§

impl<T> Status for Response<T>