pub struct ServiceBuilder<S> { /* private fields */ }
Implementations§
source§impl<S> ServiceBuilder<S>
impl<S> ServiceBuilder<S>
pub fn new<Request, Response>(inner: S) -> Selfwhere
S: Service<Request, Response>,
pub fn layer<Request, Response, L, T>(self, l: L) -> ServiceBuilder<T>
pub fn build<Request, Response>(self) -> Swhere
S: Service<Request, Response>,
pub async fn call<Request, Response>(self, request: Request) -> Responsewhere
S: Service<Request, Response>,
Auto Trait Implementations§
impl<S> Freeze for ServiceBuilder<S>where
S: Freeze,
impl<S> RefUnwindSafe for ServiceBuilder<S>where
S: RefUnwindSafe,
impl<S> Send for ServiceBuilder<S>where
S: Send,
impl<S> Sync for ServiceBuilder<S>where
S: Sync,
impl<S> Unpin for ServiceBuilder<S>where
S: Unpin,
impl<S> UnwindSafe for ServiceBuilder<S>where
S: UnwindSafe,
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