pub struct GotchaApp<T> { /* private fields */ }
Implementations§
source§impl<T> GotchaApp<T>where
T: ServiceFactory<ServiceRequest, Config = (), Error = Error, InitError = ()>,
impl<T> GotchaApp<T>where T: ServiceFactory<ServiceRequest, Config = (), Error = Error, InitError = ()>,
pub fn service<F>(self, factory: F) -> Selfwhere F: Operable + HttpServiceFactory + 'static,
pub fn wrap<M, B>( self, mw: M ) -> GotchaApp<impl ServiceFactory<ServiceRequest, Config = (), Response = ServiceResponse<B>, Error = Error, InitError = ()>>where M: Transform<T::Service, ServiceRequest, Response = ServiceResponse<B>, Error = Error, InitError = ()> + 'static, B: MessageBody,
pub fn default_service<F, U>(self, svc: F) -> Selfwhere F: IntoServiceFactory<U, ServiceRequest>, U: ServiceFactory<ServiceRequest, Config = (), Response = ServiceResponse, Error = Error> + 'static, U::InitError: Debug,
pub fn api_endpoint(self, path: impl Into<String>) -> Self
pub fn data<U: 'static>(self, ext: U) -> Self
pub fn task<Task, TaskRet>(self, t: Task) -> Selfwhere Task: Fn() -> TaskRet + 'static, TaskRet: Future<Output = ()> + Send + 'static,
pub fn done(self) -> App<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for GotchaApp<T>
impl<T> !Send for GotchaApp<T>
impl<T> !Sync for GotchaApp<T>
impl<T> Unpin for GotchaApp<T>where T: Unpin,
impl<T> !UnwindSafe for GotchaApp<T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more