pub enum TrackCover {
Embedded(DynamicImage),
External(String),
None,
}Expand description
The cover of a track.
Variants§
Embedded(DynamicImage)
The cover is embedded in the track.
The DynamicImage object contains the contents of the embedded picture.
External(String)
The cover is an external file.
The String contains the absolute path of the external file.
None
The track does not have a cover.
Implementations§
Source§impl TrackCover
impl TrackCover
pub fn set_notification_image(&self, notification: &mut Notification)
Trait Implementations§
Source§impl PartialEq for TrackCover
impl PartialEq for TrackCover
impl StructuralPartialEq for TrackCover
Auto Trait Implementations§
impl Freeze for TrackCover
impl RefUnwindSafe for TrackCover
impl Send for TrackCover
impl Sync for TrackCover
impl Unpin for TrackCover
impl UnwindSafe for TrackCover
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more