EndpointExt

Trait EndpointExt 

Source
pub trait EndpointExt: IntoEndpoint {
    // Provided methods
    fn boxed<'a>(self) -> BoxEndpoint<'a, <Self::Endpoint as Endpoint>::Output>
       where Self: Sized + 'a { ... }
    fn data<T>(self, data: T) -> AddDataEndpoint<Self::Endpoint, T>
       where T: Clone + Send + Sync + 'static,
             Self: Sized { ... }
    fn with<T>(self, middleware: T) -> T::Output
       where T: Middleware<Self::Endpoint>,
             Self: Sized { ... }
}

Provided Methods§

Source

fn boxed<'a>(self) -> BoxEndpoint<'a, <Self::Endpoint as Endpoint>::Output>
where Self: Sized + 'a,

Source

fn data<T>(self, data: T) -> AddDataEndpoint<Self::Endpoint, T>
where T: Clone + Send + Sync + 'static, Self: Sized,

Source

fn with<T>(self, middleware: T) -> T::Output
where T: Middleware<Self::Endpoint>, Self: Sized,

Implementors§