pub struct GrpcClient { /* private fields */ }Expand description
An asynchronous gRPC client to make calls with.
Implementations§
Source§impl GrpcClient
impl GrpcClient
Sourcepub fn request<'a>(&'a self, upstream: &'a Service) -> GrpcServiceBuilder<'a>
pub fn request<'a>(&'a self, upstream: &'a Service) -> GrpcServiceBuilder<'a>
Creates a gRPC request that will forward the whole response to the caller.
Trait Implementations§
Source§impl FromContext<ConfigureContext, Transitive> for GrpcClient
impl FromContext<ConfigureContext, Transitive> for GrpcClient
type Error = Infallible
fn from_context(context: &ConfigureContext) -> Result<Self, Self::Error>
fn from_context_always(context: &C) -> Selfwhere
Self: FromContext<C, E, Error = Infallible>,
Auto Trait Implementations§
impl Freeze for GrpcClient
impl !RefUnwindSafe for GrpcClient
impl !Send for GrpcClient
impl !Sync for GrpcClient
impl Unpin for GrpcClient
impl !UnwindSafe for GrpcClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more