[][src]Enum async_mpd::Mixed

pub enum Mixed {
    File(Track),
    Directory(Directory),
    Playlist(Playlist),
}

Response from commands that returns entries with metadata and tags

Variants

File(Track)
Directory(Directory)
Playlist(Playlist)

Implementations

impl Mixed[src]

pub fn track(&self) -> Option<&Track>[src]

Try to convert to Track

pub fn directory(&self) -> Option<&Directory>[src]

Try to convert to Directory

Trait Implementations

impl Debug for Mixed[src]

impl Serialize for Mixed[src]

Auto Trait Implementations

impl RefUnwindSafe for Mixed

impl Send for Mixed

impl Sync for Mixed

impl Unpin for Mixed

impl UnwindSafe for Mixed

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.