Struct tlspuffin::tcp::TcpServerPut
source · pub struct TcpServerPut {
stream: Option<(TcpStream, TcpListener)>,
stream_receiver: Receiver<(TcpStream, TcpListener)>,
agent_descriptor: AgentDescriptor,
process: Option<TLSProcess>,
}
Fields§
§stream: Option<(TcpStream, TcpListener)>
§stream_receiver: Receiver<(TcpStream, TcpListener)>
§agent_descriptor: AgentDescriptor
§process: Option<TLSProcess>
Implementations§
source§impl TcpServerPut
impl TcpServerPut
fn new( agent_descriptor: &AgentDescriptor, options: &PutOptions, ) -> Result<Self, Error>
pub fn set_process(&mut self, process: TLSProcess)
pub fn receive_stream(&mut self)
Trait Implementations§
source§impl Put<TLSProtocolBehavior> for TcpServerPut
impl Put<TLSProtocolBehavior> for TcpServerPut
source§fn progress(&mut self) -> Result<(), Error>
fn progress(&mut self) -> Result<(), Error>
Process incoming buffer, internal progress, can fill in the output buffer
fn descriptor(&self) -> &AgentDescriptor
source§fn describe_state(&self) -> &str
fn describe_state(&self) -> &str
Returns a textual representation of the state in which self is
source§fn is_state_successful(&self) -> bool
fn is_state_successful(&self) -> bool
Checks whether the Put is in a good state
source§impl Stream<TLSProtocolBehavior> for TcpServerPut
impl Stream<TLSProtocolBehavior> for TcpServerPut
fn add_to_inbound(&mut self, opaque_flight: &OpaqueMessageFlight)
source§fn take_message_from_outbound(
&mut self,
) -> Result<Option<OpaqueMessageFlight>, Error>
fn take_message_from_outbound( &mut self, ) -> Result<Option<OpaqueMessageFlight>, Error>
Takes a single TLS message from the outbound channel
source§impl TcpPut for TcpServerPut
impl TcpPut for TcpServerPut
fn write_to_stream(&mut self, buf: &[u8]) -> Result<()>
fn read_to_flight(&mut self) -> Result<Option<OpaqueMessageFlight>, Error>
Auto Trait Implementations§
impl Freeze for TcpServerPut
impl RefUnwindSafe for TcpServerPut
impl Send for TcpServerPut
impl !Sync for TcpServerPut
impl Unpin for TcpServerPut
impl UnwindSafe for TcpServerPut
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Tail, T> Prepend<T> for Tail
impl<Tail, T> Prepend<T> for Tail
§type PreprendResult = Tail
type PreprendResult = Tail
The Resulting [
TupleList
], of an [Prepend::prepend()
] call,
including the prepended entry.