protocol

Trait RecvCbor

source
pub trait RecvCbor<M: DeserializeOwned>: Sized + Read {
    // Provided method
    fn recv(&mut self) -> Result<M, CborRecvError> { ... }
}

Provided Methods§

source

fn recv(&mut self) -> Result<M, CborRecvError>

§Receive a message from self

This function can block the calling thread for the stream’s current read timeout setting (see TcpStream::set_read_timeout).

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl RecvCbor<DhcpClientMessage> for TcpStream

source§

impl RecvCbor<DhcpServerMessage> for TcpStream

Implementors§