Struct ark_api::http_client::GrpcChannel
source · pub struct GrpcChannel { /* private fields */ }Expand description
A gRPC channel that can be used for tonic-based clients. Created from ConnectionBuilder.
Like regular tonic clients, this is cheap to clone to help avoid lifetime and ownership issues.
Trait Implementations§
source§impl Clone for GrpcChannel
impl Clone for GrpcChannel
source§fn clone(&self) -> GrpcChannel
fn clone(&self) -> GrpcChannel
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<D, E, B> Service<Request<B>> for GrpcChannelwhere
D: Buf + IntoIterator<Item = u8> + Send + From<Vec<u8>> + Unpin + 'static,
E: Into<Box<dyn StdError + Send + Sync>> + 'static,
B: Body<Data = D, Error = E> + Send + Unpin + 'static,
impl<D, E, B> Service<Request<B>> for GrpcChannelwhere D: Buf + IntoIterator<Item = u8> + Send + From<Vec<u8>> + Unpin + 'static, E: Into<Box<dyn StdError + Send + Sync>> + 'static, B: Body<Data = D, Error = E> + Send + Unpin + 'static,
§type Response = Response<UnsyncBoxBody<D, E>>
type Response = Response<UnsyncBoxBody<D, E>>
Responses given by the service.
§type Future = Pin<Box<dyn Future<Output = Result<<GrpcChannel as Service<Request<B>>>::Response, <GrpcChannel as Service<Request<B>>>::Error>> + Send + 'static, Global>>
type Future = Pin<Box<dyn Future<Output = Result<<GrpcChannel as Service<Request<B>>>::Response, <GrpcChannel as Service<Request<B>>>::Error>> + Send + 'static, Global>>
The future response value.
Auto Trait Implementations§
impl RefUnwindSafe for GrpcChannel
impl Send for GrpcChannel
impl Sync for GrpcChannel
impl Unpin for GrpcChannel
impl UnwindSafe for GrpcChannel
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