Skip to main content

Module error

Module error 

Source
Expand description

The crate’s error type and result alias.

Hand-rolled (no thiserror) to keep bnb dependency-light — protocol crates depend on bnb instead of a stack of external helpers, so bnb itself stays lean.

Structs§

UnknownDiscriminant
The error returned by the TryFrom<uN> impl that #[derive(BitEnum)] generates for a byte-aligned enum without a #[catch_all] variant: the value matched no known discriminant.

Enums§

Error
Errors from checked construction.

Type Aliases§

Result
A Result specialized to Error.