Struct mpris_server::MaybePlaylist
source · pub struct MaybePlaylist { /* private fields */ }Expand description
A data structure describing a playlist, or nothing.
Rationale
D-Bus does not (at the time of writing) support a MAYBE type, so we are forced to invent our own.
Implementations§
Trait Implementations§
source§impl Clone for MaybePlaylist
impl Clone for MaybePlaylist
source§fn clone(&self) -> MaybePlaylist
fn clone(&self) -> MaybePlaylist
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for MaybePlaylist
impl Debug for MaybePlaylist
source§impl From<MaybePlaylist> for Option<Playlist>
impl From<MaybePlaylist> for Option<Playlist>
source§fn from(mp: MaybePlaylist) -> Self
fn from(mp: MaybePlaylist) -> Self
Converts to this type from the input type.
source§impl<'a> From<MaybePlaylist> for Value<'a>
impl<'a> From<MaybePlaylist> for Value<'a>
source§fn from(mp: MaybePlaylist) -> Self
fn from(mp: MaybePlaylist) -> Self
Converts to this type from the input type.
source§impl From<Playlist> for MaybePlaylist
impl From<Playlist> for MaybePlaylist
source§impl PartialEq for MaybePlaylist
impl PartialEq for MaybePlaylist
source§fn eq(&self, other: &MaybePlaylist) -> bool
fn eq(&self, other: &MaybePlaylist) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for MaybePlaylist
impl Serialize for MaybePlaylist
source§impl Type for MaybePlaylist
impl Type for MaybePlaylist
impl Eq for MaybePlaylist
impl StructuralEq for MaybePlaylist
impl StructuralPartialEq for MaybePlaylist
Auto Trait Implementations§
impl RefUnwindSafe for MaybePlaylist
impl Send for MaybePlaylist
impl Sync for MaybePlaylist
impl Unpin for MaybePlaylist
impl UnwindSafe for MaybePlaylist
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
§impl<T> DynamicType for Twhere
T: Type + ?Sized,
impl<T> DynamicType for Twhere T: Type + ?Sized,
§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more