CommitLogExt

Trait CommitLogExt 

Source
pub trait CommitLogExt
where Self: CommitLog + Sized,
{ // Provided method fn adapt<A>( self, topic: impl Into<Topic>, codec: impl Codec<A>, ) -> LogAdapter<Self, impl Codec<A>, A> { ... } }
Expand description

Provides a method on CommitLog to specialize it for a payload type.

Provided Methods§

Source

fn adapt<A>( self, topic: impl Into<Topic>, codec: impl Codec<A>, ) -> LogAdapter<Self, impl Codec<A>, A>

Specialize this commit log for items of type A The topic and group names are given and a Codec for encoding and decoding values of type A.

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<L> CommitLogExt for L
where L: CommitLog,