[][src]Struct ether_dream::protocol::command::Begin

pub struct Begin {
    pub low_water_mark: u16,
    pub point_rate: u32,
}

Causes the DAC to begin producing output.

If the playback system was Prepared and there was data in the buffer, then the DAC will reply with ACK.

Otherwise, it replies with NAK - Invalid.

Fields

low_water_mark: u16

Currently unused.

point_rate: u32

The number of points per second to be read from the buffer.

Methods

impl Begin[src]

pub fn read_fields<R: ReadBytesExt>(reader: R) -> Result<Self>[src]

Consecutively read the fields of the Begin type and return a Begin instance.

Note that if reading from a stream, this method assumes that the starting command byte has already been read.

Trait Implementations

impl Clone for Begin[src]

impl Command for Begin[src]

impl Copy for Begin[src]

impl Debug for Begin[src]

impl Eq for Begin[src]

impl<'a> From<Begin> for Command<'a>[src]

impl Hash for Begin[src]

impl PartialEq<Begin> for Begin[src]

impl ReadFromBytes for Begin[src]

impl SizeBytes for Begin[src]

impl StructuralEq for Begin[src]

impl StructuralPartialEq for Begin[src]

impl WriteToBytes for Begin[src]

Auto Trait Implementations

impl RefUnwindSafe for Begin

impl Send for Begin

impl Sync for Begin

impl Unpin for Begin

impl UnwindSafe for Begin

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.