CodecShared

Trait CodecShared 

Source
pub trait CodecShared:
    Codec
    + Send
    + Sync { }
Expand description

Convenience trait combining Codec with thread-safety bounds.

Represents types that can be fully encoded/decoded and safely shared across threads.

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: Codec + Send + Sync> CodecShared for T