pub struct Stop;Expand description
Causes the DAC to immediately stop playing and return to the Idle playback state.
It is ACKed if the DAC was in the Playing or Prepared playback states.
Otherwise it is replied to with NAK - Invalid.
Trait Implementations§
Source§impl Command for Stop
impl Command for Stop
Source§const START_BYTE: u8 = 115u8
const START_BYTE: u8 = 115u8
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 Stop
impl ReadFromBytes for Stop
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 Stop
impl WriteToBytes for Stop
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 Stop
impl Eq for Stop
impl StructuralPartialEq for Stop
Auto Trait Implementations§
impl Freeze for Stop
impl RefUnwindSafe for Stop
impl Send for Stop
impl Sync for Stop
impl Unpin for Stop
impl UnwindSafe for Stop
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