pub trait PacketTransport {
type Error;
// Required methods
fn poll_next_packet(&mut self) -> Result<PacketData, Self::Error>;
fn start(&mut self) -> Result<(), Self::Error>;
fn stop(&mut self) -> Result<(), Self::Error>;
}Available on crate feature
alloc only.Expand description
Represents an underlying message packet transport
Required Associated Types§
Required Methods§
Sourcefn poll_next_packet(&mut self) -> Result<PacketData, Self::Error>
fn poll_next_packet(&mut self) -> Result<PacketData, Self::Error>
Polls the next packet from the underlying transport