pub trait WebServiceFactory<Err: ErrorRenderer> {
    // Required method
    fn register(self, config: &mut WebServiceConfig<Err>);
}

Required Methods§

source

fn register(self, config: &mut WebServiceConfig<Err>)

Implementations on Foreign Types§

source§

impl<Err, T> WebServiceFactory<Err> for [T; 1]
where Err: ErrorRenderer, T: WebServiceFactory<Err> + 'static,

WebServiceFactory implementation for an array

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err, T> WebServiceFactory<Err> for [T; 2]
where Err: ErrorRenderer, T: WebServiceFactory<Err> + 'static,

WebServiceFactory implementation for an array

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err, T> WebServiceFactory<Err> for [T; 3]
where Err: ErrorRenderer, T: WebServiceFactory<Err> + 'static,

WebServiceFactory implementation for an array

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err, T> WebServiceFactory<Err> for [T; 4]
where Err: ErrorRenderer, T: WebServiceFactory<Err> + 'static,

WebServiceFactory implementation for an array

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err, T> WebServiceFactory<Err> for [T; 5]
where Err: ErrorRenderer, T: WebServiceFactory<Err> + 'static,

WebServiceFactory implementation for an array

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err, T> WebServiceFactory<Err> for [T; 6]
where Err: ErrorRenderer, T: WebServiceFactory<Err> + 'static,

WebServiceFactory implementation for an array

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err, T> WebServiceFactory<Err> for [T; 7]
where Err: ErrorRenderer, T: WebServiceFactory<Err> + 'static,

WebServiceFactory implementation for an array

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err, T> WebServiceFactory<Err> for [T; 8]
where Err: ErrorRenderer, T: WebServiceFactory<Err> + 'static,

WebServiceFactory implementation for an array

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err, T> WebServiceFactory<Err> for [T; 9]
where Err: ErrorRenderer, T: WebServiceFactory<Err> + 'static,

WebServiceFactory implementation for an array

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err, T> WebServiceFactory<Err> for [T; 10]
where Err: ErrorRenderer, T: WebServiceFactory<Err> + 'static,

WebServiceFactory implementation for an array

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err, T> WebServiceFactory<Err> for [T; 11]
where Err: ErrorRenderer, T: WebServiceFactory<Err> + 'static,

WebServiceFactory implementation for an array

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err, T> WebServiceFactory<Err> for [T; 12]
where Err: ErrorRenderer, T: WebServiceFactory<Err> + 'static,

WebServiceFactory implementation for an array

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err, T> WebServiceFactory<Err> for [T; 13]
where Err: ErrorRenderer, T: WebServiceFactory<Err> + 'static,

WebServiceFactory implementation for an array

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err, T> WebServiceFactory<Err> for [T; 14]
where Err: ErrorRenderer, T: WebServiceFactory<Err> + 'static,

WebServiceFactory implementation for an array

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err, T> WebServiceFactory<Err> for [T; 15]
where Err: ErrorRenderer, T: WebServiceFactory<Err> + 'static,

WebServiceFactory implementation for an array

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err, T> WebServiceFactory<Err> for [T; 16]
where Err: ErrorRenderer, T: WebServiceFactory<Err> + 'static,

WebServiceFactory implementation for an array

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err: ErrorRenderer, A: WebServiceFactory<Err> + 'static> WebServiceFactory<Err> for (A,)

WebServiceFactory implementation for a tuple

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err: ErrorRenderer, A: WebServiceFactory<Err> + 'static, B: WebServiceFactory<Err> + 'static> WebServiceFactory<Err> for (A, B)

WebServiceFactory implementation for a tuple

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err: ErrorRenderer, A: WebServiceFactory<Err> + 'static, B: WebServiceFactory<Err> + 'static, C: WebServiceFactory<Err> + 'static> WebServiceFactory<Err> for (A, B, C)

WebServiceFactory implementation for a tuple

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err: ErrorRenderer, A: WebServiceFactory<Err> + 'static, B: WebServiceFactory<Err> + 'static, C: WebServiceFactory<Err> + 'static, D: WebServiceFactory<Err> + 'static> WebServiceFactory<Err> for (A, B, C, D)

WebServiceFactory implementation for a tuple

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err: ErrorRenderer, A: WebServiceFactory<Err> + 'static, B: WebServiceFactory<Err> + 'static, C: WebServiceFactory<Err> + 'static, D: WebServiceFactory<Err> + 'static, E: WebServiceFactory<Err> + 'static> WebServiceFactory<Err> for (A, B, C, D, E)

WebServiceFactory implementation for a tuple

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err: ErrorRenderer, A: WebServiceFactory<Err> + 'static, B: WebServiceFactory<Err> + 'static, C: WebServiceFactory<Err> + 'static, D: WebServiceFactory<Err> + 'static, E: WebServiceFactory<Err> + 'static, F: WebServiceFactory<Err> + 'static> WebServiceFactory<Err> for (A, B, C, D, E, F)

WebServiceFactory implementation for a tuple

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err: ErrorRenderer, A: WebServiceFactory<Err> + 'static, B: WebServiceFactory<Err> + 'static, C: WebServiceFactory<Err> + 'static, D: WebServiceFactory<Err> + 'static, E: WebServiceFactory<Err> + 'static, F: WebServiceFactory<Err> + 'static, G: WebServiceFactory<Err> + 'static> WebServiceFactory<Err> for (A, B, C, D, E, F, G)

WebServiceFactory implementation for a tuple

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err: ErrorRenderer, A: WebServiceFactory<Err> + 'static, B: WebServiceFactory<Err> + 'static, C: WebServiceFactory<Err> + 'static, D: WebServiceFactory<Err> + 'static, E: WebServiceFactory<Err> + 'static, F: WebServiceFactory<Err> + 'static, G: WebServiceFactory<Err> + 'static, H: WebServiceFactory<Err> + 'static> WebServiceFactory<Err> for (A, B, C, D, E, F, G, H)

WebServiceFactory implementation for a tuple

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err: ErrorRenderer, A: WebServiceFactory<Err> + 'static, B: WebServiceFactory<Err> + 'static, C: WebServiceFactory<Err> + 'static, D: WebServiceFactory<Err> + 'static, E: WebServiceFactory<Err> + 'static, F: WebServiceFactory<Err> + 'static, G: WebServiceFactory<Err> + 'static, H: WebServiceFactory<Err> + 'static, I: WebServiceFactory<Err> + 'static> WebServiceFactory<Err> for (A, B, C, D, E, F, G, H, I)

WebServiceFactory implementation for a tuple

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err: ErrorRenderer, A: WebServiceFactory<Err> + 'static, B: WebServiceFactory<Err> + 'static, C: WebServiceFactory<Err> + 'static, D: WebServiceFactory<Err> + 'static, E: WebServiceFactory<Err> + 'static, F: WebServiceFactory<Err> + 'static, G: WebServiceFactory<Err> + 'static, H: WebServiceFactory<Err> + 'static, I: WebServiceFactory<Err> + 'static, J: WebServiceFactory<Err> + 'static> WebServiceFactory<Err> for (A, B, C, D, E, F, G, H, I, J)

WebServiceFactory implementation for a tuple

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err: ErrorRenderer, A: WebServiceFactory<Err> + 'static, B: WebServiceFactory<Err> + 'static, C: WebServiceFactory<Err> + 'static, D: WebServiceFactory<Err> + 'static, E: WebServiceFactory<Err> + 'static, F: WebServiceFactory<Err> + 'static, G: WebServiceFactory<Err> + 'static, H: WebServiceFactory<Err> + 'static, I: WebServiceFactory<Err> + 'static, J: WebServiceFactory<Err> + 'static, K: WebServiceFactory<Err> + 'static> WebServiceFactory<Err> for (A, B, C, D, E, F, G, H, I, J, K)

WebServiceFactory implementation for a tuple

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err: ErrorRenderer, A: WebServiceFactory<Err> + 'static, B: WebServiceFactory<Err> + 'static, C: WebServiceFactory<Err> + 'static, D: WebServiceFactory<Err> + 'static, E: WebServiceFactory<Err> + 'static, F: WebServiceFactory<Err> + 'static, G: WebServiceFactory<Err> + 'static, H: WebServiceFactory<Err> + 'static, I: WebServiceFactory<Err> + 'static, J: WebServiceFactory<Err> + 'static, K: WebServiceFactory<Err> + 'static, L: WebServiceFactory<Err> + 'static> WebServiceFactory<Err> for (A, B, C, D, E, F, G, H, I, J, K, L)

WebServiceFactory implementation for a tuple

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err: ErrorRenderer, A: WebServiceFactory<Err> + 'static, B: WebServiceFactory<Err> + 'static, C: WebServiceFactory<Err> + 'static, D: WebServiceFactory<Err> + 'static, E: WebServiceFactory<Err> + 'static, F: WebServiceFactory<Err> + 'static, G: WebServiceFactory<Err> + 'static, H: WebServiceFactory<Err> + 'static, I: WebServiceFactory<Err> + 'static, J: WebServiceFactory<Err> + 'static, K: WebServiceFactory<Err> + 'static, L: WebServiceFactory<Err> + 'static, M: WebServiceFactory<Err> + 'static> WebServiceFactory<Err> for (A, B, C, D, E, F, G, H, I, J, K, L, M)

WebServiceFactory implementation for a tuple

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err: ErrorRenderer, A: WebServiceFactory<Err> + 'static, B: WebServiceFactory<Err> + 'static, C: WebServiceFactory<Err> + 'static, D: WebServiceFactory<Err> + 'static, E: WebServiceFactory<Err> + 'static, F: WebServiceFactory<Err> + 'static, G: WebServiceFactory<Err> + 'static, H: WebServiceFactory<Err> + 'static, I: WebServiceFactory<Err> + 'static, J: WebServiceFactory<Err> + 'static, K: WebServiceFactory<Err> + 'static, L: WebServiceFactory<Err> + 'static, M: WebServiceFactory<Err> + 'static, N: WebServiceFactory<Err> + 'static> WebServiceFactory<Err> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N)

WebServiceFactory implementation for a tuple

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err: ErrorRenderer, A: WebServiceFactory<Err> + 'static, B: WebServiceFactory<Err> + 'static, C: WebServiceFactory<Err> + 'static, D: WebServiceFactory<Err> + 'static, E: WebServiceFactory<Err> + 'static, F: WebServiceFactory<Err> + 'static, G: WebServiceFactory<Err> + 'static, H: WebServiceFactory<Err> + 'static, I: WebServiceFactory<Err> + 'static, J: WebServiceFactory<Err> + 'static, K: WebServiceFactory<Err> + 'static, L: WebServiceFactory<Err> + 'static, M: WebServiceFactory<Err> + 'static, N: WebServiceFactory<Err> + 'static, O: WebServiceFactory<Err> + 'static> WebServiceFactory<Err> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)

WebServiceFactory implementation for a tuple

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err: ErrorRenderer, A: WebServiceFactory<Err> + 'static, B: WebServiceFactory<Err> + 'static, C: WebServiceFactory<Err> + 'static, D: WebServiceFactory<Err> + 'static, E: WebServiceFactory<Err> + 'static, F: WebServiceFactory<Err> + 'static, G: WebServiceFactory<Err> + 'static, H: WebServiceFactory<Err> + 'static, I: WebServiceFactory<Err> + 'static, J: WebServiceFactory<Err> + 'static, K: WebServiceFactory<Err> + 'static, L: WebServiceFactory<Err> + 'static, M: WebServiceFactory<Err> + 'static, N: WebServiceFactory<Err> + 'static, O: WebServiceFactory<Err> + 'static, P: WebServiceFactory<Err> + 'static> WebServiceFactory<Err> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)

WebServiceFactory implementation for a tuple

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err: ErrorRenderer, A: WebServiceFactory<Err> + 'static, B: WebServiceFactory<Err> + 'static, C: WebServiceFactory<Err> + 'static, D: WebServiceFactory<Err> + 'static, E: WebServiceFactory<Err> + 'static, F: WebServiceFactory<Err> + 'static, G: WebServiceFactory<Err> + 'static, H: WebServiceFactory<Err> + 'static, I: WebServiceFactory<Err> + 'static, J: WebServiceFactory<Err> + 'static, K: WebServiceFactory<Err> + 'static, L: WebServiceFactory<Err> + 'static, M: WebServiceFactory<Err> + 'static, N: WebServiceFactory<Err> + 'static, O: WebServiceFactory<Err> + 'static, P: WebServiceFactory<Err> + 'static, Q: WebServiceFactory<Err> + 'static> WebServiceFactory<Err> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q)

WebServiceFactory implementation for a tuple

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err: ErrorRenderer, A: WebServiceFactory<Err> + 'static, B: WebServiceFactory<Err> + 'static, C: WebServiceFactory<Err> + 'static, D: WebServiceFactory<Err> + 'static, E: WebServiceFactory<Err> + 'static, F: WebServiceFactory<Err> + 'static, G: WebServiceFactory<Err> + 'static, H: WebServiceFactory<Err> + 'static, I: WebServiceFactory<Err> + 'static, J: WebServiceFactory<Err> + 'static, K: WebServiceFactory<Err> + 'static, L: WebServiceFactory<Err> + 'static, M: WebServiceFactory<Err> + 'static, N: WebServiceFactory<Err> + 'static, O: WebServiceFactory<Err> + 'static, P: WebServiceFactory<Err> + 'static, Q: WebServiceFactory<Err> + 'static, R: WebServiceFactory<Err> + 'static> WebServiceFactory<Err> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R)

WebServiceFactory implementation for a tuple

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err: ErrorRenderer, A: WebServiceFactory<Err> + 'static, B: WebServiceFactory<Err> + 'static, C: WebServiceFactory<Err> + 'static, D: WebServiceFactory<Err> + 'static, E: WebServiceFactory<Err> + 'static, F: WebServiceFactory<Err> + 'static, G: WebServiceFactory<Err> + 'static, H: WebServiceFactory<Err> + 'static, I: WebServiceFactory<Err> + 'static, J: WebServiceFactory<Err> + 'static, K: WebServiceFactory<Err> + 'static, L: WebServiceFactory<Err> + 'static, M: WebServiceFactory<Err> + 'static, N: WebServiceFactory<Err> + 'static, O: WebServiceFactory<Err> + 'static, P: WebServiceFactory<Err> + 'static, Q: WebServiceFactory<Err> + 'static, R: WebServiceFactory<Err> + 'static, S: WebServiceFactory<Err> + 'static> WebServiceFactory<Err> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S)

WebServiceFactory implementation for a tuple

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err: ErrorRenderer, A: WebServiceFactory<Err> + 'static, B: WebServiceFactory<Err> + 'static, C: WebServiceFactory<Err> + 'static, D: WebServiceFactory<Err> + 'static, E: WebServiceFactory<Err> + 'static, F: WebServiceFactory<Err> + 'static, G: WebServiceFactory<Err> + 'static, H: WebServiceFactory<Err> + 'static, I: WebServiceFactory<Err> + 'static, J: WebServiceFactory<Err> + 'static, K: WebServiceFactory<Err> + 'static, L: WebServiceFactory<Err> + 'static, M: WebServiceFactory<Err> + 'static, N: WebServiceFactory<Err> + 'static, O: WebServiceFactory<Err> + 'static, P: WebServiceFactory<Err> + 'static, Q: WebServiceFactory<Err> + 'static, R: WebServiceFactory<Err> + 'static, S: WebServiceFactory<Err> + 'static, T: WebServiceFactory<Err> + 'static> WebServiceFactory<Err> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)

WebServiceFactory implementation for a tuple

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err: ErrorRenderer, A: WebServiceFactory<Err> + 'static, B: WebServiceFactory<Err> + 'static, C: WebServiceFactory<Err> + 'static, D: WebServiceFactory<Err> + 'static, E: WebServiceFactory<Err> + 'static, F: WebServiceFactory<Err> + 'static, G: WebServiceFactory<Err> + 'static, H: WebServiceFactory<Err> + 'static, I: WebServiceFactory<Err> + 'static, J: WebServiceFactory<Err> + 'static, K: WebServiceFactory<Err> + 'static, L: WebServiceFactory<Err> + 'static, M: WebServiceFactory<Err> + 'static, N: WebServiceFactory<Err> + 'static, O: WebServiceFactory<Err> + 'static, P: WebServiceFactory<Err> + 'static, Q: WebServiceFactory<Err> + 'static, R: WebServiceFactory<Err> + 'static, S: WebServiceFactory<Err> + 'static, T: WebServiceFactory<Err> + 'static, V: WebServiceFactory<Err> + 'static> WebServiceFactory<Err> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, V)

WebServiceFactory implementation for a tuple

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<Err: ErrorRenderer, A: WebServiceFactory<Err> + 'static, B: WebServiceFactory<Err> + 'static, C: WebServiceFactory<Err> + 'static, D: WebServiceFactory<Err> + 'static, E: WebServiceFactory<Err> + 'static, F: WebServiceFactory<Err> + 'static, G: WebServiceFactory<Err> + 'static, H: WebServiceFactory<Err> + 'static, I: WebServiceFactory<Err> + 'static, J: WebServiceFactory<Err> + 'static, K: WebServiceFactory<Err> + 'static, L: WebServiceFactory<Err> + 'static, M: WebServiceFactory<Err> + 'static, N: WebServiceFactory<Err> + 'static, O: WebServiceFactory<Err> + 'static, P: WebServiceFactory<Err> + 'static, Q: WebServiceFactory<Err> + 'static, R: WebServiceFactory<Err> + 'static, S: WebServiceFactory<Err> + 'static, T: WebServiceFactory<Err> + 'static, V: WebServiceFactory<Err> + 'static, X: WebServiceFactory<Err> + 'static> WebServiceFactory<Err> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, V, X)

WebServiceFactory implementation for a tuple

source§

fn register(self, config: &mut WebServiceConfig<Err>)

source§

impl<T, Err> WebServiceFactory<Err> for Vec<T>
where Err: ErrorRenderer, T: WebServiceFactory<Err> + 'static,

WebServiceFactory implementation for a Vec

source§

fn register(self, config: &mut WebServiceConfig<Err>)

Implementors§

source§

impl<Err, M, T> WebServiceFactory<Err> for Resource<Err, M, T>
where T: ServiceFactory<WebRequest<Err>, Response = WebRequest<Err>, Error = Err::Container, InitError = ()> + 'static, M: Middleware<ServiceChain<AndThen<T::Service, ResourceRouter<Err>>, WebRequest<Err>>> + 'static, M::Service: Service<WebRequest<Err>, Response = WebResponse, Error = Err::Container>, Err: ErrorRenderer,

source§

impl<Err, M, T> WebServiceFactory<Err> for Scope<Err, M, T>
where T: ServiceFactory<WebRequest<Err>, Response = WebRequest<Err>, Error = Err::Container, InitError = ()> + 'static, M: Middleware<ScopeService<T::Service, Err>> + 'static, M::Service: Service<WebRequest<Err>, Response = WebResponse, Error = Err::Container>, Err: ErrorRenderer,