Trait sawp::protocol::Protocol

source ·
pub trait Protocol<'a> {
    type Message: 'a;

    // Required method
    fn name() -> &'static str;
}
Expand description

Represents the basic elements of a protocol

Required Associated Types§

source

type Message: 'a

Type of message returned when parsing

Required Methods§

source

fn name() -> &'static str

Protocol name string

Implementors§