Skip to main content

RegisterRoute

Trait RegisterRoute 

Source
pub trait RegisterRoute<B, T> {
    // Required method
    fn register(self, backend: B) -> Self;
}
Expand description

Trait for registering routes with a backend

Required Methods§

Source

fn register(self, backend: B) -> Self

Register routes with the given backend

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<B, T, Compact> RegisterRoute<B, T> for ApiBuilder<Router>
where B: Metrics + ListWorkers + ListAllTasks + ListQueues + ListTasks<T> + FetchById<T> + TaskSink<T> + BackendExt + Send + Sync + 'static, B::Context: Serialize + 'static + Send, B::IdType: Serialize + FromStr + 'static + Send, <B as Backend>::Error: Error, <<B as Backend>::IdType as FromStr>::Err: Error, Compact: Serialize + 'static + Send, B::Compact: Serialize + 'static + Send, <<B as BackendExt>::Codec as Codec<<B as Backend>::Args>>::Error: Error, T: Serialize + DeserializeOwned + 'static + Send, B::Codec: Codec<T, Compact = Compact>, <<B as BackendExt>::Codec as Codec<T>>::Error: Error,

Source§

impl<B, T, Compact> RegisterRoute<B, T> for ApiBuilder<Scope>
where B: Metrics + ListWorkers + ListAllTasks + ListQueues + Send + 'static + ListTasks<T> + FetchById<T> + TaskSink<T>, B::Context: Serialize, B::IdType: Serialize + FromStr, <B as Backend>::Error: Error, <<B as Backend>::IdType as FromStr>::Err: Error, Compact: Serialize + 'static, B::Compact: Serialize, <<B as BackendExt>::Codec as Codec<<B as Backend>::Args>>::Error: Error, T: Serialize + DeserializeOwned + 'static, B::Codec: Codec<T, Compact = Compact>, <<B as BackendExt>::Codec as Codec<T>>::Error: Error,