Enum ether_dream_dac_emulator::stream::InterpretedCommand [] [src]

pub enum InterpretedCommand {
    Known {
        command: Command,
    },
    Unknown {
        start_byte: u8,
    },
}

An attempt at interpreting a Command from bytes.

Variants

A successfuly interpreted, known command.

Fields of Known

Received an unknown command that started with the given byte.

Fields of Unknown

Methods

impl InterpretedCommand
[src]

[src]

Read a single command from the TCP stream and return it.

This method blocks until the exact number of bytes necessary for the returned command are read.

Trait Implementations

impl Debug for InterpretedCommand
[src]

[src]

Formats the value using the given formatter. Read more

impl From<Command> for InterpretedCommand
[src]

[src]

Performs the conversion.

Auto Trait Implementations