Enum mpris::TrackListError
source · pub enum TrackListError {
DBusError(DBusError),
BorrowError(String),
}
Expand description
TrackList-related errors.
This is mostly DBusError
with the extra possibility of borrow errors of the internal metadata
cache.
Variants§
DBusError(DBusError)
Something went wrong with the D-Bus communication. See the DBusError
type.
BorrowError(String)
Something went wrong with the borrowing logic for the internal cache. Perhaps you have multiple borrowed references to the cache live at the same time, for example because of multiple iterations?
Trait Implementations§
source§impl Debug for TrackListError
impl Debug for TrackListError
source§impl Display for TrackListError
impl Display for TrackListError
source§impl Error for TrackListError
impl Error for TrackListError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<BorrowMutError> for TrackListError
impl From<BorrowMutError> for TrackListError
source§fn from(error: BorrowMutError) -> TrackListError
fn from(error: BorrowMutError) -> TrackListError
Converts to this type from the input type.
source§impl From<DBusError> for TrackListError
impl From<DBusError> for TrackListError
source§impl From<TrackListError> for EventError
impl From<TrackListError> for EventError
source§fn from(source: TrackListError) -> Self
fn from(source: TrackListError) -> Self
Converts to this type from the input type.
source§impl From<TrackListError> for ProgressError
impl From<TrackListError> for ProgressError
source§fn from(source: TrackListError) -> Self
fn from(source: TrackListError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for TrackListError
impl Send for TrackListError
impl Sync for TrackListError
impl Unpin for TrackListError
impl UnwindSafe for TrackListError
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