Skip to main content

CellCodec

Type Alias CellCodec 

Source
pub type CellCodec<P> = Arc<dyn Fn(CellKey, &[u8]) -> Result<P, String> + Send + Sync + 'static>;
Expand description

Bytes → Payload. Läuft auf dem Worker; ein Err lässt die Zelle als Fehler scheitern, ohne die Quelle zu beschädigen.

Aliased Type§

pub struct CellCodec<P> { /* private fields */ }