pub enum PlayerError {
FailedToGetProp(String, String),
FailedToSetProp(String, String),
FailedToCallFn(String, String),
Other(String),
}
Expand description
Represents errors that can occur in MPRIS Player operations.
Variants§
FailedToGetProp(String, String)
FailedToSetProp(String, String)
FailedToCallFn(String, String)
Other(String)
Implementations§
Source§impl PlayerError
impl PlayerError
pub fn failed_to_get_prop<P, E>(prop: P, err: E) -> MprisError
pub fn failed_to_set_prop<P, E>(prop: P, err: E) -> MprisError
pub fn failed_to_call_fn<F, E>(name: F, err: E) -> MprisError
pub fn other<E>(err: E) -> MprisError
Trait Implementations§
Source§impl Debug for PlayerError
impl Debug for PlayerError
Source§impl Display for PlayerError
impl Display for PlayerError
Source§impl Error for PlayerError
impl Error for PlayerError
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 From<PlayerError> for MprisError
impl From<PlayerError> for MprisError
Source§fn from(source: PlayerError) -> Self
fn from(source: PlayerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PlayerError
impl RefUnwindSafe for PlayerError
impl Send for PlayerError
impl Sync for PlayerError
impl Unpin for PlayerError
impl UnwindSafe for PlayerError
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