pub trait RecvCbor<M: DeserializeOwned>: Sized + Read {
// Provided method
fn recv(&mut self) -> Result<M, CborRecvError> { ... }
}
Provided Methods§
sourcefn recv(&mut self) -> Result<M, CborRecvError>
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.