Skip to main content

JsonRpcCodec

Trait JsonRpcCodec 

Source
pub trait JsonRpcCodec:
    Codec<ByteBuffer, Message = Value, Error = Error>
    + Clone
    + Send
    + Sync
    + 'static { }
Expand description

Byte-stream codec used for TCP, TLS, Unix, QUIC, and HTTP.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> JsonRpcCodec for T
where T: Codec<ByteBuffer, Message = Value, Error = Error> + Clone + Send + Sync + 'static,