pub trait OutcomeError {
type Error;
// Required method
fn consume(self) -> (Option<Outcome>, Self::Error);
}
Expand description
An error which can be extracted into an outcome.
Required Associated Types§
Required Methods§
Sourcefn consume(self) -> (Option<Outcome>, Self::Error)
fn consume(self) -> (Option<Outcome>, Self::Error)
Consumes the error and returns an outcome and Self::Error
.
Returning a None
outcome should discard the item(s) silently.