pub struct Player { /* private fields */ }Implementations§
Source§impl Player
impl Player
pub fn new(options: PlayerOptions) -> Self
pub fn command_args(&self, stream: &StreamLink, title: &str) -> Vec<String>
Sourcepub fn describe(&self) -> String
pub fn describe(&self) -> String
Human-readable summary of the configured player (executable + kind). Useful for debug logs and error messages.
pub async fn play( &self, stream: &StreamLink, title: &str, ) -> Result<Option<i32>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Player
impl RefUnwindSafe for Player
impl Send for Player
impl Sync for Player
impl Unpin for Player
impl UnsafeUnpin for Player
impl UnwindSafe for Player
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