Struct avalanche_types::rpcchainvm::http::client::Client
source · [−]pub struct Client { /* private fields */ }
Expand description
Client which interacts with gRPC HTTP service
Implementations
Trait Implementations
sourceimpl Handler for Client
impl Handler for Client
sourcefn serve_http_simple<'life0, 'async_trait>(
&'life0 mut self,
req: Request<Vec<u8>>
) -> Pin<Box<dyn Future<Output = Result<Response<Vec<u8>>>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn serve_http_simple<'life0, 'async_trait>(
&'life0 mut self,
req: Request<Vec<u8>>
) -> Pin<Box<dyn Future<Output = Result<Response<Vec<u8>>>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
http client takes an http request and sends to server. Does not support websockets.
fn serve_http<'life0, 'async_trait>(
&'life0 mut self,
_req: Request<Vec<u8>>
) -> Pin<Box<dyn Future<Output = Result<Response<Vec<u8>>>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request