[−][src]Struct ether_dream::protocol::DacResponse
A response from a DAC.
Fields
response: u8
See the DacResponse
associated constants for the possible values for this field.
command: u8
In the case of ACK/NAK responses, this echoes back the command to which the response is sent.
Commands are always sent in order, so this field exists for sanity-checking on the host-side.
dac_status: DacStatus
The current status of the DAC.
Methods
impl DacResponse
[src]
pub const ACK: u8
[src]
The previous command was accepted.
pub const NAK_FULL: u8
[src]
The write command could not be performed because there was not enough buffer space when it was received.
pub const NAK_INVALID: u8
[src]
The command contained an invalid command
byte or parameters.
pub const NAK_STOP_CONDITION: u8
[src]
An emergency-stop condition still exists.
Trait Implementations
impl Clone for DacResponse
[src]
fn clone(&self) -> DacResponse
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for DacResponse
[src]
impl Debug for DacResponse
[src]
impl Eq for DacResponse
[src]
impl Hash for DacResponse
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<DacResponse> for DacResponse
[src]
fn eq(&self, other: &DacResponse) -> bool
[src]
fn ne(&self, other: &DacResponse) -> bool
[src]
impl ReadFromBytes for DacResponse
[src]
fn read_from_bytes<R: ReadBytesExt>(reader: R) -> Result<Self>
[src]
impl SizeBytes for DacResponse
[src]
const SIZE_BYTES: usize
[src]
impl StructuralEq for DacResponse
[src]
impl StructuralPartialEq for DacResponse
[src]
impl WriteToBytes for DacResponse
[src]
fn write_to_bytes<W: WriteBytesExt>(&self, writer: W) -> Result<()>
[src]
Auto Trait Implementations
impl RefUnwindSafe for DacResponse
impl Send for DacResponse
impl Sync for DacResponse
impl Unpin for DacResponse
impl UnwindSafe for DacResponse
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,