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

pub struct PointRate(pub u32);

Adds a new point rate (in points per second) to the point rate buffer.

Point rate changes are read out of the buffer when a point with an appropriate flag is played (see the WriteData command).

If the DAC's playback state is not Prepared or Playing, it replies with NAK - Invalid.

If the point rate buffer is full, it replies with NAK - Full.

Otherwise, it replies with ACK.

Methods

impl PointRate[src]

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

Consecutively read the fields of the PointRate type and return a PointRate 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 PointRate[src]

impl Command for PointRate[src]

impl Copy for PointRate[src]

impl Debug for PointRate[src]

impl Eq for PointRate[src]

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

impl Hash for PointRate[src]

impl PartialEq<PointRate> for PointRate[src]

impl ReadFromBytes for PointRate[src]

impl SizeBytes for PointRate[src]

impl StructuralEq for PointRate[src]

impl StructuralPartialEq for PointRate[src]

impl WriteToBytes for PointRate[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> 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.