Struct tlspuffin::tcp::TcpClientPut

source ·
pub struct TcpClientPut {
    stream: TcpStream,
    agent_descriptor: AgentDescriptor,
    process: Option<TLSProcess>,
}
Expand description

A PUT which is backed by a TCP stream to a server. In order to use this start an OpenSSL server like this:

openssl s_server -key key.pem -cert cert.pem -accept 44330 -msg -debug -state

Fields§

§stream: TcpStream§agent_descriptor: AgentDescriptor§process: Option<TLSProcess>

Implementations§

Trait Implementations§

Process incoming buffer, internal progress, can fill in the output buffer
In-place reset of the state
Propagate agent changes to the PUT
Returns a textual representation of the state in which self is
Checks whether the Put is in a good state
Make the PUT used by self deterministic in the future by making its PRNG “deterministic” Now subsumed by Factory-level functions to reseed globally: determinism_reseed
Shut down the PUT by consuming it and returning a string that summarizes the execution.
Returns a textual representation of the version of the PUT used by self
checks whether a agent is reusable with the descriptor
Takes a single TLS message from the outbound channel

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The Resulting [TupleList], of an [Prepend::prepend()] call, including the prepended entry.
Prepend a value to this tuple, returning a new tuple with prepended value.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.