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§
Required Methods§
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
impl<B: WireFormatBackend> WireFormatBackend for &mut B
Implementors§
Source§impl<B, Args> WireFormatBackend for DurableBackend<B, Args>where
B: WireFormatBackend + Backend,
impl<B, Args> WireFormatBackend for DurableBackend<B, Args>where
B: WireFormatBackend + Backend,
type Compact = <B as WireFormatBackend>::Compact
type Codec = <B as WireFormatBackend>::Codec
Source§impl<B, E> WireFormatBackend for BeforeStart<B, E>where
B: WireFormatBackend,
impl<B, E> WireFormatBackend for BeforeStart<B, E>where
B: WireFormatBackend,
type Compact = <B as WireFormatBackend>::Compact
type Codec = <B as WireFormatBackend>::Codec
Source§impl<B, F> WireFormatBackend for InspectErr<B, F>where
B: WireFormatBackend,
impl<B, F> WireFormatBackend for InspectErr<B, F>where
B: WireFormatBackend,
type Compact = <B as WireFormatBackend>::Compact
type Codec = <B as WireFormatBackend>::Codec
Source§impl<B, F> WireFormatBackend for MapErr<B, F>where
B: WireFormatBackend,
impl<B, F> WireFormatBackend for MapErr<B, F>where
B: WireFormatBackend,
type Compact = <B as WireFormatBackend>::Compact
type Codec = <B as WireFormatBackend>::Codec
Source§impl<B, FutErr> WireFormatBackend for AfterStart<B, FutErr>where
B: WireFormatBackend,
impl<B, FutErr> WireFormatBackend for AfterStart<B, FutErr>where
B: WireFormatBackend,
type Compact = <B as WireFormatBackend>::Compact
type Codec = <B as WireFormatBackend>::Codec
Source§impl<B, FutErr> WireFormatBackend for AfterStop<B, FutErr>where
B: WireFormatBackend,
impl<B, FutErr> WireFormatBackend for AfterStop<B, FutErr>where
B: WireFormatBackend,
type Compact = <B as WireFormatBackend>::Compact
type Codec = <B as WireFormatBackend>::Codec
Source§impl<B, FutErr> WireFormatBackend for BeforeStop<B, FutErr>where
B: WireFormatBackend,
impl<B, FutErr> WireFormatBackend for BeforeStop<B, FutErr>where
B: WireFormatBackend,
type Compact = <B as WireFormatBackend>::Compact
type Codec = <B as WireFormatBackend>::Codec
Source§impl<B, NewCodec, Args> WireFormatBackend for WithCodec<B, NewCodec>
impl<B, NewCodec, Args> WireFormatBackend for WithCodec<B, NewCodec>
Source§impl<B, S> WireFormatBackend for Interleave<B, S>where
B: WireFormatBackend,
impl<B, S> WireFormatBackend for Interleave<B, S>where
B: WireFormatBackend,
type Compact = <B as WireFormatBackend>::Compact
type Codec = <B as WireFormatBackend>::Codec
Source§impl<B, S> WireFormatBackend for PollWith<B, S>where
B: WireFormatBackend,
impl<B, S> WireFormatBackend for PollWith<B, S>where
B: WireFormatBackend,
type Compact = <B as WireFormatBackend>::Compact
type Codec = <B as WireFormatBackend>::Codec
type Codec = <B as WireFormatBackend>::Codec
type Compact = <B as WireFormatBackend>::Compact
Source§impl<B> WireFormatBackend for Instrumented<B>where
B: WireFormatBackend,
Available on crate feature tracing only.
impl<B> WireFormatBackend for Instrumented<B>where
B: WireFormatBackend,
Available on crate feature
tracing only.