Struct mpris_server::builder::PlayerBuilder
source · pub struct PlayerBuilder { /* private fields */ }
Expand description
A builder used to create Player
.
Implementations§
source§impl PlayerBuilder
impl PlayerBuilder
pub fn can_quit(self, can_quit: bool) -> Self
pub fn fullscreen(self, fullscreen: bool) -> Self
pub fn can_set_fullscreen(self, can_set_fullscreen: bool) -> Self
pub fn can_raise(self, can_raise: bool) -> Self
pub fn has_track_list(self, has_track_list: bool) -> Self
pub fn identity(self, identity: impl Into<String>) -> Self
pub fn desktop_entry(self, desktop_entry: impl Into<String>) -> Self
pub fn supported_uri_schemes( self, supported_uri_schemes: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn supported_mime_types( self, supported_mime_types: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn playback_status(self, playback_status: PlaybackStatus) -> Self
pub fn loop_status(self, loop_status: LoopStatus) -> Self
pub fn rate(self, rate: PlaybackRate) -> Self
pub fn shuffle(self, shuffle: bool) -> Self
pub fn metadata(self, metadata: Metadata) -> Self
pub fn volume(self, volume: Volume) -> Self
pub fn position(self, position: Time) -> Self
pub fn minimum_rate(self, minimum_rate: PlaybackRate) -> Self
pub fn maximum_rate(self, maximum_rate: PlaybackRate) -> Self
pub fn can_go_next(self, can_go_next: bool) -> Self
pub fn can_go_previous(self, can_go_previous: bool) -> Self
pub fn can_play(self, can_play: bool) -> Self
pub fn can_pause(self, can_pause: bool) -> Self
pub fn can_seek(self, can_seek: bool) -> Self
pub fn can_control(self, can_control: bool) -> Self
pub async fn build(self) -> Result<Player>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PlayerBuilder
impl RefUnwindSafe for PlayerBuilder
impl Send for PlayerBuilder
impl Sync for PlayerBuilder
impl Unpin for PlayerBuilder
impl UnwindSafe for PlayerBuilder
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