Struct avalanche_types::rpcchainvm::common::appsender::client::Client
source · [−]pub struct Client { /* private fields */ }
Implementations
Trait Implementations
sourceimpl AppSender for Client
impl AppSender for Client
sourcefn send_app_request<'life0, 'async_trait>(
&'life0 self,
node_ids: Set,
request_id: u32,
request: Vec<u8>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn send_app_request<'life0, 'async_trait>(
&'life0 self,
node_ids: Set,
request_id: u32,
request: Vec<u8>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Send an application-level request. A nil return value guarantees that for each nodeID in [nodeIDs], the VM corresponding to this AppSender eventually receives either:
- An AppResponse from nodeID with ID [requestID]
- An AppRequestFailed from nodeID with ID [requestID] Exactly one of the above messages will eventually be received per nodeID. A non-nil error should be considered fatal.
sourcefn send_app_response<'life0, 'async_trait>(
&'life0 self,
node_id: Id,
request_id: u32,
response: Vec<u8>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn send_app_response<'life0, 'async_trait>(
&'life0 self,
node_id: Id,
request_id: u32,
response: Vec<u8>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Send an application-level response to a request. This response must be in response to an AppRequest that the VM corresponding to this AppSender received from [nodeID] with ID [requestID]. A non-nil error should be considered fatal.
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> 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