Skip to main content

Module error

Module error 

Source
Expand description

Error and Result types for ant-protocol.

Kept intentionally small: this crate is a wire contract, so the only errors worth reifying are payment-construction failures and wallet I/O errors surfaced by SingleNodePayment::{pay, verify}.

Callers that embed this crate (the node, the client) keep their own broader error enums and convert via From<ant_protocol::Error>.

Enums§

Error
Errors that can be produced by ant-protocol APIs that do I/O or construct payment proofs.

Type Aliases§

Result
Result alias used throughout this crate.