Skip to main content

Protocol

Trait Protocol 

Source
pub trait Protocol:
    Sized
    + Send
    + Sync
    + Send
    + Sync {
    type Request: Framer;
    type Response: Framer;
    type Error: IntoError;

    const VERSION: &'static str;
    const NAME: &'static str;
}
Expand description

Defines the request and response types for the JetStream protocol.

Required Associated Constants§

Source

const VERSION: &'static str

Source

const NAME: &'static str

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<T> Protocol for Server<T>
where T: NineP200L + Clone,

Source§

const VERSION: &'static str = "9P2000.L"

Source§

const NAME: &'static str = "9p"

Source§

type Error = Error

Source§

type Request = Tmessage

Source§

type Response = Rmessage