[−][src]Struct sonor::Snapshot
A Snapshot of the state the speaker is in right now. Useful for announcing some clip at a lower volume, then later resume where you left off. The struct is obtained by calling the snapshot-method on a speaker and applied using Speaker::apply.
Implementations
impl Snapshot
[src]
pub fn set_volume(&mut self, volume: u16) -> &mut Self
[src]
Sets the volume of the snapshot
pub fn set_is_playing(&mut self, is_playing: bool) -> &mut Self
[src]
Sets whether the speaker is playing
pub fn set_track_info(&mut self, track_info: TrackInfo) -> &mut Self
[src]
Specifies the current track info
pub fn set_transport_uri(
&mut self,
transport_uri: impl Into<String>
) -> &mut Self
[src]
&mut self,
transport_uri: impl Into<String>
) -> &mut Self
Specifies the current track info
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Snapshot
[src]
impl Send for Snapshot
[src]
impl Sync for Snapshot
[src]
impl Unpin for Snapshot
[src]
impl UnwindSafe for Snapshot
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,