[−][src]Enum ether_dream_dac_emulator::stream::InterpretedCommand
An attempt at interpreting a Command from bytes.
Variants
A successfuly interpreted, known command.
Fields of Known
command: Command
Received an unknown command that started with the given byte.
Fields of Unknown
start_byte: u8
Implementations
impl InterpretedCommand
[src]
pub async fn read_from_tcp_stream<'_, '_>(
bytes: &'_ mut [u8],
tcp_stream: &'_ mut Async<TcpStream>
) -> Result<Self>
[src]
bytes: &'_ mut [u8],
tcp_stream: &'_ mut Async<TcpStream>
) -> Result<Self>
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]
impl From<Command> for InterpretedCommand
[src]
Auto Trait Implementations
impl RefUnwindSafe for InterpretedCommand
impl Send for InterpretedCommand
impl Sync for InterpretedCommand
impl Unpin for InterpretedCommand
impl UnwindSafe for InterpretedCommand
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, 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>,