pub struct PointRate(pub u32);Expand description
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.
Tuple Fields§
§0: u32Implementations§
Source§impl PointRate
impl PointRate
Sourcepub fn read_fields<R: ReadBytesExt>(reader: R) -> Result<Self>
pub fn read_fields<R: ReadBytesExt>(reader: R) -> Result<Self>
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§
Source§impl Command for PointRate
impl Command for PointRate
Source§const START_BYTE: u8 = 116u8
const START_BYTE: u8 = 116u8
The starting byte of the command.
Source§fn start_byte(&self) -> u8
fn start_byte(&self) -> u8
A provided method for producing the start byte. Useful for trait objects.
Source§impl ReadFromBytes for PointRate
impl ReadFromBytes for PointRate
Source§fn read_from_bytes<R: ReadBytesExt>(reader: R) -> Result<Self>
fn read_from_bytes<R: ReadBytesExt>(reader: R) -> Result<Self>
Read the command from bytes.
Source§impl WriteToBytes for PointRate
impl WriteToBytes for PointRate
Source§fn write_to_bytes<W: WriteBytesExt>(&self, writer: W) -> Result<()>
fn write_to_bytes<W: WriteBytesExt>(&self, writer: W) -> Result<()>
Write the command to bytes.
impl Copy for PointRate
impl Eq for PointRate
impl StructuralPartialEq for PointRate
Auto Trait Implementations§
impl Freeze for PointRate
impl RefUnwindSafe for PointRate
impl Send for PointRate
impl Sync for PointRate
impl Unpin for PointRate
impl UnwindSafe for PointRate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more