Module error

Module error 

Source
Expand description

Error types for dstar-gateway-core.

Per-protocol structured error variants are used so that callers can pattern-match to distinguish I/O failures from timeouts from protocol errors from type-validation errors.

Re-exports§

pub use crate::codec::dcs::error::DcsError;
pub use crate::codec::dextra::error::DExtraError;
pub use crate::codec::dplus::error::DPlusError;

Enums§

EncodeError
Errors raised by encode_* functions when the supplied output buffer is too small for the packet they are asked to write.
Error
Top-level error type for dstar-gateway-core.
IoOperation
What kind of I/O operation an crate::error::Error::Io variant was attempting when it failed.
ProtocolError
Per-protocol structured errors.
StateError
Runtime state-machine errors that the typestate cannot prevent.
TimeoutError
Typed deadline-exceeded errors.