[−][src]Struct ether_dream::protocol::command::PointRate
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]
const START_BYTE: u8
[src]
fn start_byte(&self) -> u8
[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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<PointRate> for PointRate
[src]
impl ReadFromBytes for PointRate
[src]
fn read_from_bytes<R: ReadBytesExt>(reader: R) -> Result<Self>
[src]
impl SizeBytes for PointRate
[src]
const SIZE_BYTES: usize
[src]
impl StructuralEq for PointRate
[src]
impl StructuralPartialEq for PointRate
[src]
impl WriteToBytes for PointRate
[src]
fn write_to_bytes<W: WriteBytesExt>(&self, writer: W) -> Result<()>
[src]
Auto Trait Implementations
impl RefUnwindSafe for PointRate
impl Send for PointRate
impl Sync for PointRate
impl Unpin for PointRate
impl UnwindSafe for PointRate
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,