[][src]Struct client::pb::server::ReconnectServiceServer

pub struct ReconnectServiceServer<T> { /* fields omitted */ }

Methods

impl<T> ReconnectServiceServer<T> where
    T: ReconnectService
[src]

pub fn new(reconnect_service: T) -> Self[src]

Trait Implementations

impl<T: Clone> Clone for ReconnectServiceServer<T>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for ReconnectServiceServer<T>[src]

impl<T> Service<Request<BoxBody>> for ReconnectServiceServer<T> where
    T: ReconnectService
[src]

type Response = Response<ResponseBody<T>>

Responses given by the service.

type Error = Never

Errors produced by the service.

type Future = ResponseFuture<T>

The future response value.

impl<T> Service<()> for ReconnectServiceServer<T> where
    T: ReconnectService
[src]

type Response = Self

Responses given by the service.

type Error = Never

Errors produced by the service.

type Future = FutureResult<Self::Response, Self::Error>

The future response value.

impl<T> Service<Request<Body>> for ReconnectServiceServer<T> where
    T: ReconnectService
[src]

type Response = Self::Response

Responses given by the service.

type Error = Self::Error

Errors produced by the service.

type Future = Self::Future

The future response value.

Auto Trait Implementations

impl<T> Unpin for ReconnectServiceServer<T> where
    T: Unpin

impl<T> Sync for ReconnectServiceServer<T> where
    T: Sync

impl<T> Send for ReconnectServiceServer<T> where
    T: Send

impl<T> UnwindSafe for ReconnectServiceServer<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for ReconnectServiceServer<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, Request> ServiceExt<Request> for T where
    T: Service<Request> + ?Sized
[src]

fn ready(self) -> Ready<Self, Request>[src]

A future yielding the service when it is ready to accept a request.

fn oneshot(self, req: Request) -> Oneshot<Self, Request>[src]

Consume this Service, calling with the providing request once it is ready.

fn call_all<S>(self, reqs: S) -> CallAll<Self, S> where
    S: Stream<Item = Request>,
    Self::Error: Into<Box<dyn Error + 'static + Send + Sync>>,
    <S as Stream>::Error: Into<Box<dyn Error + 'static + Send + Sync>>, 
[src]

Process all requests from the given Stream, and produce a Stream of their responses. Read more

impl<M, S, Target, Request> MakeService<Target, Request> for M where
    M: Service<Target, Response = S>,
    S: Service<Request>, 
[src]

type Response = <S as Service<Request>>::Response

Responses given by the service

type Error = <S as Service<Request>>::Error

Errors produced by the service

type Service = S

The Service value created by this factory

type MakeError = <M as Service<Target>>::Error

Errors produced while building a service.

type Future = <M as Service<Target>>::Future

The future of the Service instance.

impl<C, Target> MakeConnection<Target> for C where
    C: Service<Target>,
    <C as Service<Target>>::Response: AsyncRead,
    <C as Service<Target>>::Response: AsyncWrite
[src]

type Connection = <C as Service<Target>>::Response

The transport provided by this service

type Error = <C as Service<Target>>::Error

Errors produced by the connecting service

type Future = <C as Service<Target>>::Future

The future that eventually produces the transport

impl<T, ReqBody, ResBody> GrpcService<ReqBody> for T where
    ResBody: Body + Body,
    T: Service<Request<ReqBody>, Response = Response<ResBody>>,
    <T as Service<Request<ReqBody>>>::Error: Into<Box<dyn Error + 'static + Send + Sync>>, 
[src]

type ResponseBody = ResBody

Response body type

type Future = <T as Service<Request<ReqBody>>>::Future

Response future

type Error = <T as Service<Request<ReqBody>>>::Error

Error type

fn into_service(self) -> IntoService<Self>[src]

Helper when needing to pass this type to bounds needing Service.

fn as_service(&mut self) -> AsService<Self>[src]

Helper when needing to pass this type to bounds needing Service.

impl<C, Target> HttpMakeConnection<Target> for C where
    C: Service<Target>,
    <C as Service<Target>>::Response: HttpConnection,
    <C as Service<Target>>::Response: AsyncRead,
    <C as Service<Target>>::Response: AsyncWrite
[src]

type Connection = <C as Service<Target>>::Response

The transport provided by this service that is HTTP aware.

type Error = <C as Service<Target>>::Error

Errors produced by the connecting service

type Future = <C as Service<Target>>::Future

The future that eventually produces the transport

impl<T, B1, B2> HttpService<B1> for T where
    B2: Body,
    T: Service<Request<B1>, Response = Response<B2>>, 
[src]

type ResponseBody = B2

Response payload.

type Error = <T as Service<Request<B1>>>::Error

Errors produced by the service.

type Future = <T as Service<Request<B1>>>::Future

The future response value.

fn into_service(self) -> IntoService<Self>[src]

Wrap the HttpService so that it implements tower_service::Service directly. Read more

fn as_service(&mut self) -> AsService<Self>[src]

Same as into_service but operates on an HttpService reference.