pub struct SystemMusicPlayer;Expand description
Marker type representing MPSystemMusicPlayer.
Implementations§
Source§impl SystemMusicPlayer
impl SystemMusicPlayer
Sourcepub fn is_supported() -> bool
pub fn is_supported() -> bool
Returns false on macOS because Apple marks MPSystemMusicPlayer unavailable.
Returns the framework availability note for MPSystemMusicPlayer.
Sourcepub fn unsupported_error() -> MediaPlayerError
pub fn unsupported_error() -> MediaPlayerError
Returns a typed unavailability error for MPSystemMusicPlayer.
Returns an explicit macOS-unavailable result for the primary constructor-like API.
Trait Implementations§
Source§impl Clone for SystemMusicPlayer
impl Clone for SystemMusicPlayer
Source§fn clone(&self) -> SystemMusicPlayer
fn clone(&self) -> SystemMusicPlayer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SystemMusicPlayer
Source§impl Debug for SystemMusicPlayer
impl Debug for SystemMusicPlayer
Source§impl Default for SystemMusicPlayer
impl Default for SystemMusicPlayer
Source§fn default() -> SystemMusicPlayer
fn default() -> SystemMusicPlayer
Returns the “default value” for a type. Read more
impl Eq for SystemMusicPlayer
Source§impl PartialEq for SystemMusicPlayer
impl PartialEq for SystemMusicPlayer
Source§fn eq(&self, other: &SystemMusicPlayer) -> bool
fn eq(&self, other: &SystemMusicPlayer) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SystemMusicPlayer
Auto Trait Implementations§
impl Freeze for SystemMusicPlayer
impl RefUnwindSafe for SystemMusicPlayer
impl Send for SystemMusicPlayer
impl Sync for SystemMusicPlayer
impl Unpin for SystemMusicPlayer
impl UnsafeUnpin for SystemMusicPlayer
impl UnwindSafe for SystemMusicPlayer
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