PacketTransport

Trait PacketTransport 

Source
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§

Source

fn poll_next_packet(&mut self) -> Result<PacketData, Self::Error>

Polls the next packet from the underlying transport

Source

fn start(&mut self) -> Result<(), Self::Error>

Start the underlying transport up

Source

fn stop(&mut self) -> Result<(), Self::Error>

Stop the underlying transport

Implementors§

Source§

impl<R, P> PacketTransport for Packetizer<'_, R, P>
where R: Bits, P: Packetization<R>,