Skip to main content

Module error

Module error 

Source
Expand description

MediaErrorNetworkError mapping. A From impl is impossible here (orphan rule: both types are foreign), so the conversion is a function plus a result-extension trait.

Traits§

MediaResultExt
Result<T, MediaError>Result<T, NetworkError>.

Functions§

from_media_error
Maps a [MediaError] onto the registry: config errors become MediaConfigInvalid, everything else MediaFrameRejected.