#[non_exhaustive]pub enum Operation {
Show 14 variants
Connect,
Status,
GetSticker,
SetSticker,
SendToPlaylist,
SendMessage,
Update,
GetStoredPlaylists,
RspToUris,
GetStickers,
GetAllSongs,
Add,
Idle,
GetMessages,
}Expand description
Enumerated list of MPD operations; used in Error::Protocol to distinguish which operation it was that elicited the protocol error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Connect
Status
GetSticker
SetSticker
SendToPlaylist
SendMessage
Update
GetStoredPlaylists
RspToUris
GetStickers
GetAllSongs
Add
Idle
GetMessages
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
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