Skip to main content

Protocol

Trait Protocol 

Source
pub trait Protocol:
    Send
    + Sync
    + 'static {
    // Required method
    fn id(&self) -> &'static str;
}
Expand description

Stable protocol slug plus metadata.

Required Methods§

Source

fn id(&self) -> &'static str

Protocol slug (for example "http", "grpc").

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§