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§
Sourcefn unwrap_ok_committed(self) -> T
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.
Sourcefn unwrap_ok_or_conflict(self) -> Result<T, Box<ConfirmedBlockCertificate>>
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).