Skip to main content

Module error

Module error 

Source
Expand description

The crate-wide error type shared by every protocol in the stack. The error type shared across the stack.

One Error enum spans every layer — buffers, UDP, ICE, DTLS, SCTP, SRTP, RTP/RTCP, SDP and the data channel — so a value can propagate from the innermost codec to the application without conversion at each boundary. The higher-level crates re-export it, which is why an application only ever imports one error type.

Structs§

IoError
Wrapper around std::io::Error that implements PartialEq.
P256Error
Wrapper around p256::elliptic_curve::Error that implements PartialEq.
StdError
An escape hatch to preserve stack traces for errors whose concrete type is unknown.

Enums§

Error
Unified error type for all WebRTC sub-protocols.

Functions§

flatten_errs
Flattens a list of errors into a single Error, joining their messages with newlines.

Type Aliases§

Result
A type alias for std::result::Result with this crate’s Error type.