ProtocolDescriptorConfig

Trait ProtocolDescriptorConfig 

Source
pub trait ProtocolDescriptorConfig:
    Default
    + Debug
    + Clone
    + Serialize
    + Hash
    + for<'a> Deserialize<'a> {
    // Required method
    fn is_reusable_with(&self, other: &Self) -> bool;
}
Expand description

Contains the protocol specific configuration of an agent

Required Methods§

Source

fn is_reusable_with(&self, other: &Self) -> bool

Indicates wheter a agent is reusable, ie. it’s configuration is compatible with the new agent to spawn

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§