Trait puffin::stream::Stream

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

Required Methods§

source

fn add_to_inbound(&mut self, message_flight: &PB::OpaqueProtocolMessageFlight)

source

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

Takes a single TLS message from the outbound channel

Implementors§