Trait puffin::stream::Stream

source ·
pub trait Stream<PB: ProtocolBehavior> {
    // Required methods
    fn add_to_inbound(&mut self, message: &ConcreteMessage);
    fn take_message_from_outbound(
        &mut self,
    ) -> Result<Option<PB::OpaqueProtocolMessageFlight>, Error>;
}

Required Methods§

source

fn add_to_inbound(&mut self, message: &ConcreteMessage)

source

fn take_message_from_outbound( &mut self, ) -> Result<Option<PB::OpaqueProtocolMessageFlight>, Error>

Takes a single TLS message from the outbound channel

Implementors§