Enum mpdpopm::clients::Error[][src]

pub enum Error {
Show 22 variants Other { cause: Box<dyn Error>, back: Backtrace, }, Add { text: String, back: Backtrace, }, Connect { text: String, back: Backtrace, }, Find { text: String, back: Backtrace, }, GetAllSongs { text: String, back: Backtrace, }, GetMessages { text: String, back: Backtrace, }, GetStickers { text: String, back: Backtrace, }, StickerSet { text: String, back: Backtrace, }, StickerGet { text: String, back: Backtrace, }, SendMessage { text: String, back: Backtrace, }, Subscribe { text: String, back: Backtrace, }, Idle { text: String, back: Backtrace, }, IdleSubsystem { text: String, back: Backtrace, }, PlayState { text: String, back: Backtrace, }, SongId { text: String, back: Backtrace, }, Elapsed { text: String, back: Backtrace, }, SongFile { text: String, back: Backtrace, }, Duration { text: String, back: Backtrace, }, UnknownState { state: String, back: Backtrace, }, UpdateDB { text: String, back: Backtrace, }, GetStoredPlaylists { text: String, back: Backtrace, }, BadStickerConversion { sticker: String, error: String, back: Backtrace, },
}
Expand description

An enumeration of `mpd’ client errors

Variants

Other

Fields of Other

cause: Box<dyn Error>back: Backtrace
Add

Error adding a URI

Fields of Add

text: Stringback: Backtrace
Connect

Error upon connecting to the mpd server; includes the text returned (if any)

Fields of Connect

text: Stringback: Backtrace
Find

Error in response to find1 or find2

Fields of Find

text: Stringback: Backtrace
GetAllSongs

Error in response to get_all_songs

Fields of GetAllSongs

text: Stringback: Backtrace
GetMessages

Error in respone to “readmessages”

Fields of GetMessages

text: Stringback: Backtrace
GetStickers

Error in response to “sticker find”

Fields of GetStickers

text: Stringback: Backtrace
StickerSet

Error in respone to “sticker set”

Fields of StickerSet

text: Stringback: Backtrace
StickerGet

Error in respone to “sticker get”

Fields of StickerGet

text: Stringback: Backtrace
SendMessage

Error in respone to “sendmessage”

Fields of SendMessage

text: Stringback: Backtrace
Subscribe

Error in respone to “subscribe”

Fields of Subscribe

text: Stringback: Backtrace
Idle

Error in respone to “idle”

Fields of Idle

text: Stringback: Backtrace
IdleSubsystem

Unknown idle subsystem

Fields of IdleSubsystem

text: Stringback: Backtrace
PlayState

Couldn’t parse PlayState

Fields of PlayState

text: Stringback: Backtrace
SongId

Couldn’t parse SongId

Fields of SongId

text: Stringback: Backtrace
Elapsed

Couldn’t parse Elapsed

Fields of Elapsed

text: Stringback: Backtrace
SongFile

Couldn’t parse song file

Fields of SongFile

text: Stringback: Backtrace
Duration

Couldn’t parse Duration

Fields of Duration

text: Stringback: Backtrace
UnknownState

Unknown player state

Fields of UnknownState

state: Stringback: Backtrace
UpdateDB

Error in respone to “update”

Fields of UpdateDB

text: Stringback: Backtrace
GetStoredPlaylists

Error in respone to “listplaylists”

Fields of GetStoredPlaylists

text: Stringback: Backtrace
BadStickerConversion

Error in converting a sticker to the desired type

Fields of BadStickerConversion

sticker: Stringerror: Stringback: Backtrace

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

Returns a Backtrace that may be printed.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

For maximum effectiveness, this needs to be called as a method to benefit from Rust’s automatic dereferencing of method receivers. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.