Skip to main content

Protocol

Trait Protocol 

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§

const VERSION: &'static str

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§

§

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

§

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

§

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

§

type Error = Error

§

type Request = Tmessage

§

type Response = Rmessage