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§
fn add_to_inbound(&mut self, message_flight: &PB::OpaqueProtocolMessageFlight)
sourcefn take_message_from_outbound(
&mut self,
) -> Result<Option<PB::OpaqueProtocolMessageFlight>, Error>
fn take_message_from_outbound( &mut self, ) -> Result<Option<PB::OpaqueProtocolMessageFlight>, Error>
Takes a single TLS message from the outbound channel