[][src]Enum melody::MelodyErrorsKind

pub enum MelodyErrorsKind {
    Io(IoErrorKind),
    NotAbsolutePath,
    PathDoesNotExist,
    PathIsNotADir,
    PathIsNotAFile,
    ChildOfParentRecursion,
    FailedToFindParent,
    UnsupportedFileType,
    FailedToReadTag,
    UnkownFileType,
    CanNotReadFileEXT,
    EmptyQueue,
    NotPaused,
    AlreadyPlaying,
    MissingDuration,
    MetaDataError,
}

Kind of errror that arose from Melody

Variants

Io(IoErrorKind)

IO error

NotAbsolutePath

The path was not absolute

PathDoesNotExist

Path does not exist

PathIsNotADir

The path was expected to be a dir

PathIsNotAFile

The path was expected to be a file

ChildOfParentRecursion

Recursion error caused by the selecting the child as the move of a parent

FailedToFindParent

Failed to get the directory above selected dir

UnsupportedFileType

File type is not supported

FailedToReadTag

Failed to the read the tag of the file

UnkownFileType

Unknown file type, not supported

CanNotReadFileEXT

Failed to get the file's extention

EmptyQueue

The queue is empty, cannot play from an empty queue

NotPaused

Music player is not paused

AlreadyPlaying

Music player is already playing, cannot resume

MissingDuration

Failed to get song duration

MetaDataError

Failed to read the metadata of the song

Trait Implementations

impl Copy for MelodyErrorsKind[src]

impl Clone for MelodyErrorsKind[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for MelodyErrorsKind[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for 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.

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

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

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