Skip to main content

JsonRpcWsCodec

Trait JsonRpcWsCodec 

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

WebSocket-message codec used for ws:// and wss:// endpoints.

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> JsonRpcWsCodec for T
where T: Codec<Message, Message = Value, Error = Error> + Clone + Send + Sync + 'static,

Available on crate feature ws only.