pub struct MsgClient<T> { /* private fields */ }
Expand description
Msg defines the bank Msg service.
Implementations§
source§impl<T> MsgClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> MsgClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F
) -> MsgClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
sourcepub async fn send(
&mut self,
request: impl IntoRequest<MsgSend>
) -> Result<Response<MsgSendResponse>, Status>
pub async fn send( &mut self, request: impl IntoRequest<MsgSend> ) -> Result<Response<MsgSendResponse>, Status>
Send defines a method for sending coins from one account to another account.
sourcepub async fn multi_send(
&mut self,
request: impl IntoRequest<MsgMultiSend>
) -> Result<Response<MsgMultiSendResponse>, Status>
pub async fn multi_send( &mut self, request: impl IntoRequest<MsgMultiSend> ) -> Result<Response<MsgMultiSendResponse>, Status>
MultiSend defines a method for sending coins from some accounts to other accounts.
sourcepub async fn update_params(
&mut self,
request: impl IntoRequest<MsgUpdateParams>
) -> Result<Response<MsgUpdateParamsResponse>, Status>
pub async fn update_params( &mut self, request: impl IntoRequest<MsgUpdateParams> ) -> Result<Response<MsgUpdateParamsResponse>, Status>
UpdateParams defines a governance operation for updating the x/bank module parameters. The authority is defined in the keeper.
Since: cosmos-sdk 0.47
sourcepub async fn set_send_enabled(
&mut self,
request: impl IntoRequest<MsgSetSendEnabled>
) -> Result<Response<MsgSetSendEnabledResponse>, Status>
pub async fn set_send_enabled( &mut self, request: impl IntoRequest<MsgSetSendEnabled> ) -> Result<Response<MsgSetSendEnabledResponse>, Status>
SetSendEnabled is a governance operation for setting the SendEnabled flag on any number of Denoms. Only the entries to add or update should be included. Entries that already exist in the store, but that aren’t included in this message, will be left unchanged.
Since: cosmos-sdk 0.47
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for MsgClient<T>
impl<T> RefUnwindSafe for MsgClient<T>where
T: RefUnwindSafe,
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>where
T: UnwindSafe,
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
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>
T
in a tonic::Request