Skip to main content

SyncCodec

Trait SyncCodec 

Source
pub trait SyncCodec<Ctx>
where Ctx: Context, Self: Codec<Status<Ctx>> + Codec<Request<Ctx>> + Codec<Response<Ctx>> + HasEncodedLen<Response<Ctx>>,
{ }
Expand description

Codec for sync protocol messages

This trait is automatically implemented for any type that implements:

Implementors§

Source§

impl<Ctx, Codec> SyncCodec<Ctx> for Codec
where Ctx: Context, Codec: Codec<Status<Ctx>> + Codec<Request<Ctx>> + Codec<Response<Ctx>> + HasEncodedLen<Response<Ctx>>,