[−][src]Struct client::pb::server::ReconnectServiceServer
Methods
impl<T> ReconnectServiceServer<T> where
T: ReconnectService,
[src]
T: ReconnectService,
Trait Implementations
impl<T: Clone> Clone for ReconnectServiceServer<T>
[src]
fn clone(&self) -> 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]
T: ReconnectService,
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.
fn poll_ready(&mut self) -> Poll<(), Self::Error>
[src]
fn call(&mut self, request: Request<BoxBody>) -> Self::Future
[src]
impl<T> Service<()> for ReconnectServiceServer<T> where
T: ReconnectService,
[src]
T: ReconnectService,
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.
fn poll_ready(&mut self) -> Poll<(), Self::Error>
[src]
fn call(&mut self, _target: ()) -> Self::Future
[src]
impl<T> Service<Request<Body>> for ReconnectServiceServer<T> where
T: ReconnectService,
[src]
T: ReconnectService,
Auto Trait Implementations
impl<T> Unpin for ReconnectServiceServer<T> where
T: Unpin,
T: Unpin,
impl<T> Sync for ReconnectServiceServer<T> where
T: Sync,
T: Sync,
impl<T> Send for ReconnectServiceServer<T> where
T: Send,
T: Send,
impl<T> UnwindSafe for ReconnectServiceServer<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for ReconnectServiceServer<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T, Request> ServiceExt<Request> for T where
T: Service<Request> + ?Sized,
[src]
T: Service<Request> + ?Sized,
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]
S: Stream<Item = Request>,
Self::Error: Into<Box<dyn Error + 'static + Send + Sync>>,
<S as Stream>::Error: Into<Box<dyn Error + 'static + Send + Sync>>,
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]
M: Service<Target, Response = S>,
S: Service<Request>,
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.
fn poll_ready(
&mut self
) -> Result<Async<()>, <M as MakeService<Target, Request>>::MakeError>
[src]
&mut self
) -> Result<Async<()>, <M as MakeService<Target, Request>>::MakeError>
fn make_service(
&mut self,
target: Target
) -> <M as MakeService<Target, Request>>::Future
[src]
&mut self,
target: Target
) -> <M as MakeService<Target, Request>>::Future
impl<C, Target> MakeConnection<Target> for C where
C: Service<Target>,
<C as Service<Target>>::Response: AsyncRead,
<C as Service<Target>>::Response: AsyncWrite,
[src]
C: Service<Target>,
<C as Service<Target>>::Response: AsyncRead,
<C as Service<Target>>::Response: AsyncWrite,
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
fn poll_ready(
&mut self
) -> Result<Async<()>, <C as MakeConnection<Target>>::Error>
[src]
&mut self
) -> Result<Async<()>, <C as MakeConnection<Target>>::Error>
fn make_connection(
&mut self,
target: Target
) -> <C as MakeConnection<Target>>::Future
[src]
&mut self,
target: Target
) -> <C as MakeConnection<Target>>::Future
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]
ResBody: Body + Body,
T: Service<Request<ReqBody>, Response = Response<ResBody>>,
<T as Service<Request<ReqBody>>>::Error: Into<Box<dyn Error + 'static + Send + Sync>>,
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 poll_ready(
&mut self
) -> Result<Async<()>, <T as GrpcService<ReqBody>>::Error>
[src]
&mut self
) -> Result<Async<()>, <T as GrpcService<ReqBody>>::Error>
fn call(
&mut self,
request: Request<ReqBody>
) -> <T as GrpcService<ReqBody>>::Future
[src]
&mut self,
request: Request<ReqBody>
) -> <T as GrpcService<ReqBody>>::Future
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]
C: Service<Target>,
<C as Service<Target>>::Response: HttpConnection,
<C as Service<Target>>::Response: AsyncRead,
<C as Service<Target>>::Response: AsyncWrite,
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
fn poll_ready(
&mut self
) -> Result<Async<()>, <C as HttpMakeConnection<Target>>::Error>
[src]
&mut self
) -> Result<Async<()>, <C as HttpMakeConnection<Target>>::Error>
fn make_connection(
&mut self,
target: Target
) -> <C as HttpMakeConnection<Target>>::Future
[src]
&mut self,
target: Target
) -> <C as HttpMakeConnection<Target>>::Future
impl<T, B1, B2> HttpService<B1> for T where
B2: Body,
T: Service<Request<B1>, Response = Response<B2>>,
[src]
B2: Body,
T: Service<Request<B1>, Response = Response<B2>>,
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 poll_ready(&mut self) -> Result<Async<()>, <T as HttpService<B1>>::Error>
[src]
fn call(&mut self, request: Request<B1>) -> <T as HttpService<B1>>::Future
[src]
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.