pub trait BackendExt: Backend {
type Codec: Codec<Self::Args, Compact = Self::Compact>;
type Compact;
type CompactStream: Stream<Item = Result<Option<Task<Self::Compact, Self::Context, Self::IdType>>, Self::Error>>;
// Required method
fn poll_compact(self, worker: &WorkerContext) -> Self::CompactStream;
}Expand description
Defines the encoding/serialization aspects of a backend.
Required Associated Types§
Required Methods§
Sourcefn poll_compact(self, worker: &WorkerContext) -> Self::CompactStream
fn poll_compact(self, worker: &WorkerContext) -> Self::CompactStream
Polls the backend for encoded tasks for the given worker.
Implementors§
Source§impl<Args: 'static + Send + Serialize + DeserializeOwned + Unpin> BackendExt for JsonStorage<Args>
Available on crate feature json only.
impl<Args: 'static + Send + Serialize + DeserializeOwned + Unpin> BackendExt for JsonStorage<Args>
Available on crate feature
json only.