[][src]Enum toio::proto::Sound

pub enum Sound {
    Stop,
    Preset(SoundPreset),
    Play(SoundPlay),
}

Message to the sound device.

Variants

Stop

Stops.

Preset(SoundPreset)

Plays the preset sound.

Play(SoundPlay)

Plays the sound with the list of operations.x

Implementations

impl Sound[src]

pub fn new_stop() -> Self[src]

Constructs a new Sound::Stop.

impl Sound[src]

pub fn new_preset(f0: SoundPreset) -> Self[src]

Constructs a new Sound::Preset.

impl Sound[src]

pub fn new_play(f0: SoundPlay) -> Self[src]

Constructs a new Sound::Play.

Trait Implementations

impl Clone for Sound[src]

impl Debug for Sound[src]

impl Eq for Sound[src]

impl PartialEq<Sound> for Sound[src]

impl StructuralEq for Sound[src]

impl StructuralPartialEq for Sound[src]

impl<'_> TryFrom<&'_ [u8]> for Sound[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Sound> for Vec<u8>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Sound> for (Uuid, Vec<u8>)[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Vec<u8>> for Sound[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Sound

impl Send for Sound

impl Sync for Sound

impl Unpin for Sound

impl UnwindSafe for Sound

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.