pub enum RustError {
InvalidUtf8(Utf8Error),
InteriorNull(NulError),
VersionMismatch(VersionError),
Pointer(Option<DebugLoc>),
}
Expand description
Enum containing the possible errors in the Rust wrapper over mpv, which may be caused by data passed from mpv or by the user.
Variants§
InvalidUtf8(Utf8Error)
Invalid UTF-8 data was encountered while parsing a C string into a Rust string.
InteriorNull(NulError)
An unexpected NULL byte was found while parsing a Rust string into a C string.
VersionMismatch(VersionError)
The version of the mpv header or client does not match the version this crate was built for.
Pointer(Option<DebugLoc>)
mpv provided us with a null or otherwise malformed pointer.
This can happen occasionally, especially during init, and is not fatal.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RustError
impl RefUnwindSafe for RustError
impl Send for RustError
impl Sync for RustError
impl Unpin for RustError
impl UnwindSafe for RustError
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