pub struct DacResponse {
pub acknowledgement: AckCode,
pub command: CommandCode,
pub status: DacStatus,
}Expand description
A 22-byte response the DAC sends to any command.
Fields§
§acknowledgement: AckCodeOne byte ACK/NACK.
command: CommandCodeOne byte repeat of the command that was received. For sanity checking.
status: DacStatus20-byte status of the dac.
Implementations§
Source§impl DacResponse
impl DacResponse
Sourcepub fn parse(bytes: &[u8]) -> Result<DacResponse, EtherdreamError>
pub fn parse(bytes: &[u8]) -> Result<DacResponse, EtherdreamError>
Parse a DacResponse from a 22 byte body.
Trait Implementations§
Source§impl Clone for DacResponse
impl Clone for DacResponse
Source§fn clone(&self) -> DacResponse
fn clone(&self) -> DacResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DacResponse
impl Debug for DacResponse
impl Copy for DacResponse
Auto Trait Implementations§
impl Freeze for DacResponse
impl RefUnwindSafe for DacResponse
impl Send for DacResponse
impl Sync for DacResponse
impl Unpin for DacResponse
impl UnwindSafe for DacResponse
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