pub enum MpvError {
MpvError {
command: Vec<Value>,
message: String,
},
MpvSocketConnectionError(String),
InternalConnectionError(String),
JsonParseError(Error),
ValueContainsUnexpectedType {
expected_type: String,
received: Value,
},
DataContainsUnexpectedType {
expected_type: String,
received: MpvDataType,
},
MissingMpvData,
MissingKeyInObject {
key: String,
map: Map<String, Value>,
},
UnexpectedProperty(Property),
Other(String),
}
Expand description
Any error that can occur when interacting with mpv.
Variants§
MpvError
MpvSocketConnectionError(String)
InternalConnectionError(String)
JsonParseError(Error)
ValueContainsUnexpectedType
DataContainsUnexpectedType
MissingMpvData
MissingKeyInObject
UnexpectedProperty(Property)
Other(String)
Trait Implementations§
source§impl Error for MpvError
impl Error for MpvError
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()
Auto Trait Implementations§
impl Freeze for MpvError
impl !RefUnwindSafe for MpvError
impl Send for MpvError
impl Sync for MpvError
impl Unpin for MpvError
impl !UnwindSafe for MpvError
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