Struct puffin::agent::AgentDescriptor
source · pub struct AgentDescriptor<C: ProtocolDescriptorConfig> {
pub name: AgentName,
pub protocol_config: C,
}
Expand description
AgentDescriptor
s act like a blueprint to spawn Agent
s 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 crate::put::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 crate::put::PutDescriptor
are supposed to
differ between invocations.
Fields§
§name: AgentName
§protocol_config: C
Contains the protocol specific configuration of the Agent
Implementations§
source§impl<C: ProtocolDescriptorConfig> AgentDescriptor<C>
impl<C: ProtocolDescriptorConfig> AgentDescriptor<C>
Trait Implementations§
source§impl<C: Clone + ProtocolDescriptorConfig> Clone for AgentDescriptor<C>
impl<C: Clone + ProtocolDescriptorConfig> Clone for AgentDescriptor<C>
source§fn clone(&self) -> AgentDescriptor<C>
fn clone(&self) -> AgentDescriptor<C>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<C: Debug + ProtocolDescriptorConfig> Debug for AgentDescriptor<C>
impl<C: Debug + ProtocolDescriptorConfig> Debug for AgentDescriptor<C>
source§impl<C: ProtocolDescriptorConfig> Default for AgentDescriptor<C>
impl<C: ProtocolDescriptorConfig> Default for AgentDescriptor<C>
source§impl<'de, C> Deserialize<'de> for AgentDescriptor<C>where
C: ProtocolDescriptorConfig,
impl<'de, C> Deserialize<'de> for AgentDescriptor<C>where
C: ProtocolDescriptorConfig,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<C: Hash + ProtocolDescriptorConfig> Hash for AgentDescriptor<C>
impl<C: Hash + ProtocolDescriptorConfig> Hash for AgentDescriptor<C>
source§impl<C: PartialEq + ProtocolDescriptorConfig> PartialEq for AgentDescriptor<C>
impl<C: PartialEq + ProtocolDescriptorConfig> PartialEq for AgentDescriptor<C>
source§impl<C> Serialize for AgentDescriptor<C>where
C: ProtocolDescriptorConfig,
impl<C> Serialize for AgentDescriptor<C>where
C: ProtocolDescriptorConfig,
impl<C: Eq + ProtocolDescriptorConfig> Eq for AgentDescriptor<C>
impl<C: ProtocolDescriptorConfig> StructuralPartialEq for AgentDescriptor<C>
Auto Trait Implementations§
impl<C> Freeze for AgentDescriptor<C>where
C: Freeze,
impl<C> RefUnwindSafe for AgentDescriptor<C>where
C: RefUnwindSafe,
impl<C> Send for AgentDescriptor<C>where
C: Send,
impl<C> Sync for AgentDescriptor<C>where
C: Sync,
impl<C> Unpin for AgentDescriptor<C>where
C: Unpin,
impl<C> UnwindSafe for AgentDescriptor<C>where
C: UnwindSafe,
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<T> CloneAny for T
impl<T> CloneAny for T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§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.