Trait amq_protocol::frame::SerializeFn

source ·
pub trait SerializeFn<W>: Fn(WriteContext<W>) -> Result<WriteContext<W>, GenError> { }
Expand description

Trait for serializing functions

Serializing functions take one input W that is the target of writing and return an instance of cookie_factory::GenResult.

This trait is implemented for all Fn(W) -> GenResult<W>.

Implementors§

source§

impl<W, F> SerializeFn<W> for F