Trait channel_loader::Loadable[][src]

pub trait Loadable<T: TaskHandler> {
    fn load_by(key: T::Key) -> Receiver<Result<Option<T::Value>, T::Error>>
    where
        T: TaskHandler
; }
Expand description

Loadable types load using the corresponding static loader associated by type via define_static_loader

Required methods

Load a value by it’s key in a batched load to be schedule after the next TaskHandler is ready for a task assignment, typically after yielding to tokio and a connection has been acquired

Implementors