Skip to main content

ProtocolLayer

Trait ProtocolLayer 

Source
pub trait ProtocolLayer:
    Any
    + Send
    + Sync
    + Debug {
    // Required methods
    fn protocol_name(&self) -> &str;
    fn as_any(&self) -> &dyn Any;
    fn to_json(&self) -> Value;
}
Expand description

Trait for custom protocol layers to implement

Required Methods§

Source

fn protocol_name(&self) -> &str

Source

fn as_any(&self) -> &dyn Any

Source

fn to_json(&self) -> Value

Implementors§