pub struct NowPlaying {
pub title: String,
pub artist: String,
pub album: String,
pub duration: f64,
pub position: f64,
pub playing: bool,
pub cover: Option<Vec<u8>>,
pub can_next: bool,
pub can_previous: bool,
}Expand description
O que toca agora, para os controles de mídia do sistema (o quadro do volume do Windows, o painel do Linux, a Central de Controle, a tela bloqueada).
Fields§
§title: String§artist: String§album: String§duration: f64Em segundos (0: não se sabe).
position: f64Em segundos.
playing: bool§cover: Option<Vec<u8>>A capa (PNG ou JPEG, como está no arquivo).
can_next: boolHá faixa seguinte e anterior (os botões do sistema ficam ligados).
can_previous: boolTrait Implementations§
Source§impl Clone for NowPlaying
impl Clone for NowPlaying
Source§impl Debug for NowPlaying
impl Debug for NowPlaying
Source§impl Default for NowPlaying
impl Default for NowPlaying
Source§impl PartialEq for NowPlaying
impl PartialEq for NowPlaying
impl StructuralPartialEq for NowPlaying
Auto Trait Implementations§
impl Forget for NowPlaying
impl Freeze for NowPlaying
impl Move for NowPlaying
impl RefUnwindSafe for NowPlaying
impl Send for NowPlaying
impl Sync for NowPlaying
impl Unpin for NowPlaying
impl UnsafeUnpin for NowPlaying
impl UnwindSafe for NowPlaying
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