Skip to main content

Module error

Module error 

Source
Expand description

The one error type every fallible function in this crate returns.

The teller throws with a sentence a person reads ('a withdrawal is at least 546 sat') and its tests match on those words. Every refusal here is a named variant whose Display is the teller’s sentence, word for word, so a page can show it and a test can match either the variant or the text. The variants this port adds (the ledger event, which the teller’s page reads, and the boundaries Rust types make explicit) say so.

Enums§

Error
Everything the teller refuses, in its own words.

Type Aliases§

Result
Result with this crate’s Error.