Trait ClientOutcomeResultExt

Source
pub trait ClientOutcomeResultExt<T, E> {
    // Required methods
    fn unwrap_ok_committed(self) -> T;
    fn unwrap_ok_or_conflict(self) -> Result<T, Box<ConfirmedBlockCertificate>>;
}

Required Methods§

Source

fn unwrap_ok_committed(self) -> T

Unwraps the result and panics if it’s not Committed. Use this when you expect the operation to succeed without conflicts.

Source

fn unwrap_ok_or_conflict(self) -> Result<T, Box<ConfirmedBlockCertificate>>

Unwraps the result, accepting both Committed and Conflict outcomes. Returns the committed value or the conflicting certificate (boxed).

Implementations on Foreign Types§

Source§

impl<T, E: Debug> ClientOutcomeResultExt<T, E> for Result<ClientOutcome<T>, E>

Implementors§