Struct IntoMakeService

pub struct IntoMakeService<S> { /* private fields */ }

A MakeService that produces axum router services.

Trait Implementations

impl<S, T> Service<T> for IntoMakeService<S> where S: Clone,

type Response = S;
type Error = never;
type Future = IntoMakeServiceFuture<S>;
fn poll_ready(&mut self, _cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
fn call(&mut self, _target: T) -> Self::Future

impl<S: Clone> Clone for IntoMakeService<S>

fn clone(&self) -> IntoMakeService<S>

impl<S: Debug> Debug for IntoMakeService<S>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl<S> Freeze for IntoMakeService<S> where S: Freeze,

impl<S> RefUnwindSafe for IntoMakeService<S> where S: RefUnwindSafe,

impl<S> Send for IntoMakeService<S> where S: Send,

impl<S> Sync for IntoMakeService<S> where S: Sync,

impl<S> Unpin for IntoMakeService<S> where S: Unpin,

impl<S> UnsafeUnpin for IntoMakeService<S> where S: UnsafeUnpin,

impl<S> UnwindSafe for IntoMakeService<S> where S: UnwindSafe,

Blanket Implementations

impl<C, Target> MakeConnection<Target> for IntoMakeService<S> where C: Service<Target>, <C as Service<Target>>::Response: AsyncRead + AsyncWrite,

type Connection = <C as Service<Target>>::Response;
type Error = <C as Service<Target>>::Error;
type Future = <C as Service<Target>>::Future;
fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), <C as MakeConnection<Target>>::Error>>
fn make_connection(&mut self, target: Target) -> <C as MakeConnection<Target>>::Future

impl<M, S, Target, Request> MakeService<Target, Request> for IntoMakeService<S> where M: Service<Target, Response = S>, S: Service<Request>,

type Response = <S as Service<Request>>::Response;
type Error = <S as Service<Request>>::Error;
type Service = S;
type MakeError = <M as Service<Target>>::Error;
type Future = <M as Service<Target>>::Future;
fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), <M as MakeService<Target, Request>>::MakeError>>
fn make_service(&mut self, target: Target) -> <M as MakeService<Target, Request>>::Future

impl<S, R> ServiceExt<R> for IntoMakeService<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<S, T> Connect for IntoMakeService<S> where S: Service<Uri, Response = T> + Send + 'static, <S as Service<Uri>>::Error: Into<Box<dyn Error + Sync + Send>>, <S as Service<Uri>>::Future: Unpin + Send, T: Read + Write + Connection + Unpin + Send + 'static,

type _Svc = S;
fn connect(self, Internal, dst: Uri) -> Oneshot<S, Uri>

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for IntoMakeService<S> where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for IntoMakeService<S> where ST: ?Sized, DT: ?Sized,

impl<T> Any for IntoMakeService<S> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for IntoMakeService<S> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for IntoMakeService<S> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for IntoMakeService<S> where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for IntoMakeService<S>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> FromRef<T> for IntoMakeService<S> where T: Clone,

fn from_ref(input: &T) -> T

impl<T> Instrument for IntoMakeService<S>

impl<T> Read<Exclusive, BecauseExclusive> for IntoMakeService<S> where T: ?Sized,

impl<T> Same for IntoMakeService<S>

type Output = T;

impl<T> ToOwned for IntoMakeService<S> where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T> WithSubscriber for IntoMakeService<S>

impl<T, Request> ServiceExt<Request> for IntoMakeService<S> where T: Service<Request> + ?Sized,

impl<T, U> Into<U> for IntoMakeService<S> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for IntoMakeService<S> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for IntoMakeService<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 IntoMakeService<S> where V: MultiLane<T>,

fn vzip(self) -> V