[−][src]Struct blip::overlay::GrpcService
A wrapper around an arbitrary Service that will implement MeshService for free.
This can be used to serve a service that isn't mesh-aware.
Methods
impl<S: Service<HttpRequest<Body>>> GrpcService<S>
[src]
Trait Implementations
impl<S: Clone> Clone for GrpcService<S>
[src]
fn clone(&self) -> GrpcService<S>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<S: Copy> Copy for GrpcService<S>
[src]
impl<S: Debug> Debug for GrpcService<S>
[src]
impl<S: Send> MeshService for GrpcService<S>
[src]
fn accept<'async_trait>(
self,
__arg1: Subscription
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
Self: 'async_trait,
[src]
self,
__arg1: Subscription
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
Self: 'async_trait,
fn add_metadata<K: Extend<(String, Vec<u8>)>>(&self, _keys: &mut K)
[src]
impl<S: NamedService> NamedService for GrpcService<S>
[src]
impl<Request, S: Service<Request>> Service<Request> for GrpcService<S>
[src]
Auto Trait Implementations
impl<S> RefUnwindSafe for GrpcService<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for GrpcService<S> where
S: Send,
S: Send,
impl<S> Sync for GrpcService<S> where
S: Sync,
S: Sync,
impl<S> Unpin for GrpcService<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for GrpcService<S> where
S: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, M1, M2> ClientStreamingService<M1> for T where
T: Service<Request<Streaming<M1>>, Response = Response<M2>, Error = Status>,
[src]
T: Service<Request<Streaming<M1>>, Response = Response<M2>, Error = Status>,
type Response = M2
Protobuf response message type
type Future = <T as Service<Request<Streaming<M1>>>>::Future
Response future
fn call(
&mut self,
request: Request<Streaming<M1>>
) -> <T as ClientStreamingService<M1>>::Future
[src]
&mut self,
request: Request<Streaming<M1>>
) -> <T as ClientStreamingService<M1>>::Future
impl<S, T> Connect for S where
S: Service<Uri, Response = T> + Send + 'static,
T: AsyncRead + AsyncWrite + Connection + Unpin + Send + 'static,
<S as Service<Uri>>::Error: Into<Box<dyn Error + 'static + Sync + Send>>,
<S as Service<Uri>>::Future: Unpin,
<S as Service<Uri>>::Future: Send,
[src]
S: Service<Uri, Response = T> + Send + 'static,
T: AsyncRead + AsyncWrite + Connection + Unpin + Send + 'static,
<S as Service<Uri>>::Error: Into<Box<dyn Error + 'static + Sync + Send>>,
<S as Service<Uri>>::Future: Unpin,
<S as Service<Uri>>::Future: Send,
impl<T> From<T> for T
[src]
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 + Sync + Send>>,
<ResBody as Body>::Error: Into<Box<dyn Error + 'static + Sync + Send>>,
[src]
ResBody: Body + Body,
T: Service<Request<ReqBody>, Response = Response<ResBody>>,
<T as Service<Request<ReqBody>>>::Error: Into<Box<dyn Error + 'static + Sync + Send>>,
<ResBody as Body>::Error: Into<Box<dyn Error + 'static + Sync + Send>>,
type ResponseBody = ResBody
Responses body given by the service.
type Error = <T as Service<Request<ReqBody>>>::Error
Errors produced by the service.
type Future = <T as Service<Request<ReqBody>>>::Future
The future response value.
fn poll_ready(
&mut self,
cx: &mut Context
) -> Poll<Result<(), <T as GrpcService<ReqBody>>::Error>>
[src]
&mut self,
cx: &mut Context
) -> Poll<Result<(), <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
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
fn into_request(self) -> Request<T>
[src]
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,
cx: &mut Context
) -> Poll<Result<(), <C as MakeConnection<Target>>::Error>>
[src]
&mut self,
cx: &mut Context
) -> Poll<Result<(), <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<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,
cx: &mut Context
) -> Poll<Result<(), <M as MakeService<Target, Request>>::MakeError>>
[src]
&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
[src]
&mut self,
target: Target
) -> <M as MakeService<Target, Request>>::Future
impl<T, S, M1, M2> ServerStreamingService<M1> for T where
S: Stream<Item = Result<M2, Status>>,
T: Service<Request<M1>, Response = Response<S>, Error = Status>,
[src]
S: Stream<Item = Result<M2, Status>>,
T: Service<Request<M1>, Response = Response<S>, Error = Status>,
type Response = M2
Protobuf response message type
type ResponseStream = S
Stream of outbound response messages
type Future = <T as Service<Request<M1>>>::Future
Response future
fn call(
&mut self,
request: Request<M1>
) -> <T as ServerStreamingService<M1>>::Future
[src]
&mut self,
request: Request<M1>
) -> <T as ServerStreamingService<M1>>::Future
impl<T, Request> ServiceExt<Request> for T where
T: Service<Request> + ?Sized,
[src]
T: Service<Request> + ?Sized,
fn ready(&mut self) -> Ready<Self, Request>
[src]
fn oneshot(self, req: Request) -> Oneshot<Self, Request>
[src]
fn call_all<S>(self, reqs: S) -> CallAll<Self, S> where
S: Stream<Item = Request>,
Self::Error: Into<Box<dyn Error + 'static + Sync + Send>>,
[src]
S: Stream<Item = Request>,
Self::Error: Into<Box<dyn Error + 'static + Sync + Send>>,
impl<T, S, M1, M2> StreamingService<M1> for T where
S: Stream<Item = Result<M2, Status>>,
T: Service<Request<Streaming<M1>>, Response = Response<S>, Error = Status>,
[src]
S: Stream<Item = Result<M2, Status>>,
T: Service<Request<Streaming<M1>>, Response = Response<S>, Error = Status>,
type Response = M2
Protobuf response message type
type ResponseStream = S
Stream of outbound response messages
type Future = <T as Service<Request<Streaming<M1>>>>::Future
Response future
fn call(
&mut self,
request: Request<Streaming<M1>>
) -> <T as StreamingService<M1>>::Future
[src]
&mut self,
request: Request<Streaming<M1>>
) -> <T as StreamingService<M1>>::Future
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> 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, M1, M2> UnaryService<M1> for T where
T: Service<Request<M1>, Response = Response<M2>, Error = Status>,
[src]
T: Service<Request<M1>, Response = Response<M2>, Error = Status>,
type Response = M2
Protobuf response message type
type Future = <T as Service<Request<M1>>>::Future
Response future
fn call(&mut self, request: Request<M1>) -> <T as UnaryService<M1>>::Future
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,