pub struct App<S = ()>(/* private fields */);Implementations§
Source§impl<S: 'static> App<S>
impl<S: 'static> App<S>
pub fn new() -> App<S>
pub fn service<T, F, U>(self, address: T, service: F) -> Selfwhere
T: IntoPattern,
F: IntoServiceFactory<U>,
U: ServiceFactory<Config = Link<S>, Request = Message<S>, Response = Outcome> + 'static,
U::Error: Into<Error>,
U::InitError: Into<Error>,
pub fn finish( self, ) -> impl ServiceFactory<Config = State<S>, Request = Link<S>, Response = (), Error = Error, InitError = Error>
Auto Trait Implementations§
impl<S> Freeze for App<S>
impl<S = ()> !RefUnwindSafe for App<S>
impl<S = ()> !Send for App<S>
impl<S = ()> !Sync for App<S>
impl<S> Unpin for App<S>
impl<S = ()> !UnwindSafe for App<S>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more