Struct oddio::StopControl[][src]

pub struct StopControl<'a, T>(_);

Thread-safe control for a Stop filter

Implementations

impl<'a, T> StopControl<'a, T>[src]

pub fn pause(&self)[src]

Suspend playback of the source

pub fn resume(&self)[src]

Resume the paused source

pub fn stop(&self)[src]

Stop the source for good

pub fn is_paused(&self) -> bool[src]

Whether the source is paused

pub fn is_stopped(&self) -> bool[src]

Whether the source has stopped

Trait Implementations

impl<'a, T: Clone> Clone for StopControl<'a, T>[src]

impl<'a, T: Copy> Copy for StopControl<'a, T>[src]

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for StopControl<'a, T> where
    T: RefUnwindSafe
[src]

impl<'a, T> Send for StopControl<'a, T> where
    T: Sync
[src]

impl<'a, T> Sync for StopControl<'a, T> where
    T: Sync
[src]

impl<'a, T> Unpin for StopControl<'a, T>[src]

impl<'a, T> UnwindSafe for StopControl<'a, T> where
    T: RefUnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.