pub struct AgentDescriptor {
    pub name: AgentName,
    pub tls_version: TLSVersion,
    pub typ: AgentType,
    pub try_reuse: bool,
    pub client_authentication: bool,
    pub server_authentication: bool,
}
Expand description

AgentDescriptors act like a blueprint to spawn Agents with a corresponding server or client role and a specific TLs version. Essentially they are an Agent without a stream.

The difference between an AgentDescriptor and a PutDescriptor is that values of the AgentDescriptor are required for seed traces to succeed. They are the same for every invocation of the seed. Values in the PutDescriptor are supposed to differ between invocations.

Fields§

§name: AgentName§tls_version: TLSVersion§typ: AgentType

Whether the agent which holds this descriptor is a server.

§try_reuse: bool

Whether we want to try to reuse a previous agent. This is needed for TLS session resumption as openssl agents rotate ticket keys if they are recreated.

§client_authentication: bool

If agent is a server: Make client auth. a requirement. If agent is a client: Send a static certificate.

Default: false

§server_authentication: bool

If agent is a server: No effect, servers always send certificates in TLS. If agent is a client: Make server auth. a requirement.

Default: true

Implementations§

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Serialize this value into the given Serde serializer. Read more

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
Checks if this value is equivalent to the given key. Read more
Compare self to key and return true if they are equal.

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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.