[][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> Clone for Command<'a>[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

impl ReadFromBytes for Command<'static>[src]

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

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for Command<'a>

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

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

impl<'a> Unpin for Command<'a>

impl<'a> UnwindSafe for Command<'a>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.