[−][src]Struct mpdpopm::ratings::RatingRequest
A request from a client to rate a track.
Fields
rating: u8
track: RatedTrack
Trait Implementations
impl Debug for RatingRequest
[src]
impl<'_> TryFrom<&'_ str> for RatingRequest
[src]
Produce a RatingRequest instance from a line of `mpd' output.
type Error = Error
The type returned in the event of a conversion error.
pub fn try_from(text: &str) -> Result<Self, Self::Error>
[src]
Attempt to produce a RatingRequest instance from a line of `mpd' response to a "readmessages" command. After the channel line, each subsequent line will be of the form "message: $MESSAGE"-- this method assumes that the "message: " prefix has been stripped off (i.e. we're dealing with a single line of text containing only our custom message format).
For ratings, we expect a message of the form: "RATING (TRACK)?".
Auto Trait Implementations
impl RefUnwindSafe for RatingRequest
[src]
impl Send for RatingRequest
[src]
impl Sync for RatingRequest
[src]
impl Unpin for RatingRequest
[src]
impl UnwindSafe for RatingRequest
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DebugAny for T where
T: Any + Debug,
T: Any + Debug,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> UnsafeAny for T where
T: Any,
T: Any,