Skip to main content

RecFamily

Trait RecFamily 

Source
pub trait RecFamily: 'static {
    type Rec<'buf>: Send;
}
Expand description

Maps a payload-buffer lifetime to the deserialized record type.

The family tag itself is 'static — it is a type-level function, never instantiated — which is what keeps chains nameable and Send while the records they process borrow ephemeral buffers.

Required Associated Types§

Source

type Rec<'buf>: Send

The record type produced for payloads borrowing 'buf.

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> RecFamily for Owned<T>
where T: Send + 'static,

Source§

type Rec<'buf> = T