Skip to main content

WireFormatBackend

Trait WireFormatBackend 

Source
pub trait WireFormatBackend {
    type Codec: Send + 'static;
    type Compact;

    // Required method
    fn codec(&self) -> &Self::Codec;
}
Expand description

Provides wire-format support for a backend.

A WireFormatBackend associates a backend with a codec used to encode and decode tasks and with the compact representation used when tasks are transmitted or persisted in their encoded form.

Required Associated Types§

Source

type Codec: Send + 'static

The codec used to encode and decode tasks.

Source

type Compact

The compact representation of task arguments.

Required Methods§

Source

fn codec(&self) -> &Self::Codec

Returns a reference to the codec used by the backend.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<B: WireFormatBackend> WireFormatBackend for &mut B

Implementors§

Source§

impl<B, Args> WireFormatBackend for DurableBackend<B, Args>

Source§

impl<B, E> WireFormatBackend for BeforeStart<B, E>

Source§

impl<B, F> WireFormatBackend for InspectErr<B, F>

Source§

impl<B, F> WireFormatBackend for MapErr<B, F>

Source§

impl<B, FutErr> WireFormatBackend for AfterStart<B, FutErr>

Source§

impl<B, FutErr> WireFormatBackend for AfterStop<B, FutErr>

Source§

impl<B, FutErr> WireFormatBackend for BeforeStop<B, FutErr>

Source§

impl<B, NewCodec, Args> WireFormatBackend for WithCodec<B, NewCodec>
where NewCodec: Codec<Args> + Send + 'static, B: BackendConfig<Args = Args>,

Source§

type Codec = NewCodec

Source§

type Compact = <NewCodec as Codec<Args>>::Compact

Source§

impl<B, S> WireFormatBackend for Interleave<B, S>

Source§

impl<B, S> WireFormatBackend for PollWith<B, S>

Source§

impl<B: WireFormatBackend> WireFormatBackend for Shared<B>

Available on crate feature shared only.
Source§

impl<B> WireFormatBackend for Instrumented<B>

Available on crate feature tracing only.
Source§

impl<B> WireFormatBackend for WakeOnPush<B>

Source§

impl<Dst, S> WireFormatBackend for Pipe<Dst, S>
where Dst: WireFormatBackend,