pub struct Begin {
pub low_water_mark: u16,
pub point_rate: u32,
}Expand description
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: u16Currently unused.
point_rate: u32The number of points per second to be read from the buffer.
Implementations§
Source§impl Begin
impl Begin
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 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§
Source§impl Command for Begin
impl Command for Begin
Source§const START_BYTE: u8 = 98u8
const START_BYTE: u8 = 98u8
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 Begin
impl ReadFromBytes for Begin
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 Begin
impl WriteToBytes for Begin
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 Begin
impl Eq for Begin
impl StructuralPartialEq for Begin
Auto Trait Implementations§
impl Freeze for Begin
impl RefUnwindSafe for Begin
impl Send for Begin
impl Sync for Begin
impl Unpin for Begin
impl UnwindSafe for Begin
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