Struct RouterIntoService
pub struct RouterIntoService<B, S = ()> { /* private fields */ }
A Router converted into an owned Service with a fixed body type.
See Router::into_service for more details.
Trait Implementations
impl<B> Service<Request<B>> for RouterIntoService<B, ()>
where
B: HttpBody<Data = Bytes> + Send + 'static,
B::Error: Into<BoxError>,
type Response = Response<Body>;type Error = never;type Future = RouteFuture<never>;fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>fn call(&mut self, req: Request<B>) -> Self::Future
impl<B, S> Clone for RouterIntoService<B, S>
where
Router<S>: Clone,
fn clone(&self) -> Self
impl<B, S> Debug for RouterIntoService<B, S>
where
S: Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl<B, S = ()> !RefUnwindSafe for RouterIntoService<B, S>
impl<B, S = ()> !UnwindSafe for RouterIntoService<B, S>
impl<B, S> Freeze for RouterIntoService<B, S>
where
Router<S>: Freeze,
PhantomData<fn(B)>: Freeze,
impl<B, S> Send for RouterIntoService<B, S>
where
Router<S>: Send,
PhantomData<fn(B)>: Send,
impl<B, S> Sync for RouterIntoService<B, S>
where
Router<S>: Sync,
PhantomData<fn(B)>: Sync,
impl<B, S> Unpin for RouterIntoService<B, S>
where
Router<S>: Unpin,
PhantomData<fn(B)>: Unpin,
impl<B, S> UnsafeUnpin for RouterIntoService<B, S>
where
Router<S>: UnsafeUnpin,
PhantomData<fn(B)>: UnsafeUnpin,
Blanket Implementations
impl<S, R> ServiceExt<R> for RouterIntoService<B, S>
where
S: Service<R>,
fn into_make_service(self) -> IntoMakeService<S>fn into_make_service_with_connect_info<C>(self) -> IntoMakeServiceWithConnectInfo<S, C>
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for RouterIntoService<B, S>
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for RouterIntoService<B, S>
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for RouterIntoService<B, S>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for RouterIntoService<B, S>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for RouterIntoService<B, S>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for RouterIntoService<B, S>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for RouterIntoService<B, S>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> FromRef<T> for RouterIntoService<B, S>
where
T: Clone,
fn from_ref(input: &T) -> T
impl<T> Instrument for RouterIntoService<B, S>
impl<T> Read<Exclusive, BecauseExclusive> for RouterIntoService<B, S>
where
T: ?Sized,
impl<T> Same for RouterIntoService<B, S>
type Output = T;
impl<T> ToOwned for RouterIntoService<B, S>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T> WithSubscriber for RouterIntoService<B, S>
impl<T, Request> ServiceExt<Request> for RouterIntoService<B, S>
where
T: Service<Request> + ?Sized,
impl<T, U> Into<U> for RouterIntoService<B, S>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for RouterIntoService<B, S>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for RouterIntoService<B, S>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<V, T> VZip<V> for RouterIntoService<B, S>
where
V: MultiLane<T>,
fn vzip(self) -> V