pub enum MediaError {
Unsupported,
UnsupportedSource(String),
NothingLoaded,
NotSeekable,
Failed(String),
}Variants§
Unsupported
No media backend on this platform.
UnsupportedSource(String)
The backend cannot open this URI — an unknown scheme, a codec it has no decoder for, a file that is not there.
NothingLoaded
A transport call arrived before anything was opened.
NotSeekable
The backend has no seek for this item — a live stream, or a container without an index.
Failed(String)
Any other failure the platform reported.
Trait Implementations§
Source§impl Clone for MediaError
impl Clone for MediaError
Source§impl Debug for MediaError
impl Debug for MediaError
Source§impl Display for MediaError
impl Display for MediaError
impl Eq for MediaError
Source§impl Error for MediaError
impl Error for MediaError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for MediaError
impl PartialEq for MediaError
impl StructuralPartialEq for MediaError
Auto Trait Implementations§
impl Freeze for MediaError
impl RefUnwindSafe for MediaError
impl Send for MediaError
impl Sync for MediaError
impl Unpin for MediaError
impl UnsafeUnpin for MediaError
impl UnwindSafe for MediaError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more