pub struct MsgClient<T> { /* private fields */ }Expand description
Msg defines the state transitions possible within gravity
Implementations§
Source§impl<T> MsgClient<T>where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
impl<T> MsgClient<T>where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self
pub async fn send_to_ethereum( &mut self, request: impl IntoRequest<MsgSendToEthereum>, ) -> Result<Response<MsgSendToEthereumResponse>, Status>
pub async fn cancel_send_to_ethereum( &mut self, request: impl IntoRequest<MsgCancelSendToEthereum>, ) -> Result<Response<MsgCancelSendToEthereumResponse>, Status>
pub async fn request_batch_tx( &mut self, request: impl IntoRequest<MsgRequestBatchTx>, ) -> Result<Response<MsgRequestBatchTxResponse>, Status>
pub async fn submit_ethereum_tx_confirmation( &mut self, request: impl IntoRequest<MsgSubmitEthereumTxConfirmation>, ) -> Result<Response<MsgSubmitEthereumTxConfirmationResponse>, Status>
pub async fn submit_ethereum_event( &mut self, request: impl IntoRequest<MsgSubmitEthereumEvent>, ) -> Result<Response<MsgSubmitEthereumEventResponse>, Status>
pub async fn set_delegate_keys( &mut self, request: impl IntoRequest<MsgDelegateKeys>, ) -> Result<Response<MsgDelegateKeysResponse>, Status>
pub async fn submit_ethereum_height_vote( &mut self, request: impl IntoRequest<MsgEthereumHeightVote>, ) -> Result<Response<MsgEthereumHeightVoteResponse>, Status>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for MsgClient<T>where
T: Freeze,
impl<T> !RefUnwindSafe for MsgClient<T>
impl<T> Send for MsgClient<T>where
T: Send,
impl<T> Sync for MsgClient<T>where
T: Sync,
impl<T> Unpin for MsgClient<T>where
T: Unpin,
impl<T> !UnwindSafe for MsgClient<T>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request