[][src]Struct toio::proto::SoundPlay

pub struct SoundPlay {
    pub repeat: u8,
    pub num: u8,
    pub ops: Vec<SoundOp>,
}

Plays sound in accordance with the list of operations.

Fields

repeat: u8

The repeat count.

num: u8

The number of operations.

ops: Vec<SoundOp>

The list of operations to play sounds.

Implementations

impl SoundPlay[src]

pub fn new(repeat: u8, num: u8, ops: Vec<SoundOp>) -> Self[src]

Constructs a new SoundPlay.

Trait Implementations

impl Clone for SoundPlay[src]

impl Debug for SoundPlay[src]

impl<'de> Deserialize<'de> for SoundPlay[src]

impl Eq for SoundPlay[src]

impl PartialEq<SoundPlay> for SoundPlay[src]

impl Serialize for SoundPlay[src]

impl StructuralEq for SoundPlay[src]

impl StructuralPartialEq for SoundPlay[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.