pub struct Ping;Expand description
The DAC will reply to this with an ACK packet.
This serves as a keep-alive for the connection when the DAC is not actively streaming.
Trait Implementations§
Source§impl Command for Ping
impl Command for Ping
Source§const START_BYTE: u8 = 63u8
const START_BYTE: u8 = 63u8
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 Ping
impl ReadFromBytes for Ping
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 Ping
impl WriteToBytes for Ping
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 Ping
impl Eq for Ping
impl StructuralPartialEq for Ping
Auto Trait Implementations§
impl Freeze for Ping
impl RefUnwindSafe for Ping
impl Send for Ping
impl Sync for Ping
impl Unpin for Ping
impl UnwindSafe for Ping
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