Skip to main content

Module error

Module error 

Source

Enums§

Error
Crate-wide error. Each element defines its own {Element}Error (see FileDemuxError, SwDecoderError, QueueError) for its own domain-specific failures; this enum just aggregates them so trait methods (Sink::consume, SourceElement::run, …) — which have to return one common error type to stay object-safe across arbitrary Box<dyn Sink> — can report any of them. ? chains through automatically: an element’s own function returns its own error type, and the moment that gets used with ? inside a function returning this top-level Result, it’s converted here via #[from].

Type Aliases§

Result