pub struct RawDataBackend<B> { /* private fields */ }Expand description
Wrapper that skips decoding and works directly with compact representation.
This is useful for backends that natively handle compact types and do not know the types at compile time. Examples include backends that work with raw bytes or JSON values like workflows that manipulate dynamic data.
Implementations§
Source§impl<B> RawDataBackend<B>
impl<B> RawDataBackend<B>
Trait Implementations§
Source§impl<B> Backend for RawDataBackend<B>where
B: BackendExt,
impl<B> Backend for RawDataBackend<B>where
B: BackendExt,
Source§type Args = <B as BackendExt>::Compact
type Args = <B as BackendExt>::Compact
The type of arguments the backend handles.
Source§type Stream = <B as BackendExt>::CompactStream
type Stream = <B as BackendExt>::CompactStream
A stream of tasks provided by the backend.
Source§fn heartbeat(&self, worker: &WorkerContext) -> Self::Beat
fn heartbeat(&self, worker: &WorkerContext) -> Self::Beat
Returns a heartbeat stream for the given worker.
Source§fn middleware(&self) -> Self::Layer
fn middleware(&self) -> Self::Layer
Returns the backend’s middleware layer.
Source§fn poll(self, worker: &WorkerContext) -> Self::Stream
fn poll(self, worker: &WorkerContext) -> Self::Stream
Polls the backend for tasks for the given worker.
Source§impl<B: Clone> Clone for RawDataBackend<B>
impl<B: Clone> Clone for RawDataBackend<B>
Source§fn clone(&self) -> RawDataBackend<B>
fn clone(&self) -> RawDataBackend<B>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<B> Freeze for RawDataBackend<B>where
B: Freeze,
impl<B> RefUnwindSafe for RawDataBackend<B>where
B: RefUnwindSafe,
impl<B> Send for RawDataBackend<B>where
B: Send,
impl<B> Sync for RawDataBackend<B>where
B: Sync,
impl<B> Unpin for RawDataBackend<B>where
B: Unpin,
impl<B> UnwindSafe for RawDataBackend<B>where
B: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more