[][src]Enum ether_dream::dac::Command

pub enum Command<'a> {
    PrepareStream(PrepareStream),
    Begin(Begin),
    PointRate(PointRate),
    Data(Data<'a>),
    Stop(Stop),
    EmergencyStop(EmergencyStop),
    ClearEmergencyStop(ClearEmergencyStop),
    Ping(Ping),
}

A command whose kind is determined at runtime.

This is particularly useful when Reading a command from bytes or from a TCP stream. The ReadFromBytes implementation will automatically determine the kind by reading the first byte.

Variants

PrepareStream(PrepareStream)Begin(Begin)PointRate(PointRate)Data(Data<'a>)Stop(Stop)EmergencyStop(EmergencyStop)ClearEmergencyStop(ClearEmergencyStop)Ping(Ping)

Trait Implementations

impl<'a> WriteToBytes for Command<'a>[src]

impl ReadFromBytes for Command<'static>[src]

impl<'a> PartialEq<Command<'a>> for Command<'a>[src]

impl<'a> Eq for Command<'a>[src]

impl<'a> Clone for Command<'a>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> From<PrepareStream> for Command<'a>[src]

impl<'a> From<Begin> for Command<'a>[src]

impl<'a> From<PointRate> for Command<'a>[src]

impl<'a> From<Data<'a>> for Command<'a>[src]

impl<'a> From<Stop> for Command<'a>[src]

impl<'a> From<EmergencyStop> for Command<'a>[src]

impl<'a> From<EmergencyStopAlt> for Command<'a>[src]

impl<'a> From<ClearEmergencyStop> for Command<'a>[src]

impl<'a> From<Ping> for Command<'a>[src]

impl<'a> Debug for Command<'a>[src]

impl<'a> Hash for Command<'a>[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl<'a> Send for Command<'a>

impl<'a> Sync for Command<'a>

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]