Struct MsgClient
pub struct MsgClient<T> { /* private fields */ }Expand description
Msg defines the Msg service.
Implementations§
§impl<T> MsgClient<T>
impl<T> MsgClient<T>
pub fn new(inner: T) -> MsgClient<T>
pub fn with_origin(inner: T, origin: Uri) -> MsgClient<T>
pub fn with_interceptor<F>( inner: T, interceptor: F, ) -> MsgClient<InterceptedService<T, F>>
pub fn send_compressed(self, encoding: CompressionEncoding) -> MsgClient<T>
pub fn send_compressed(self, encoding: CompressionEncoding) -> MsgClient<T>
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
pub fn accept_compressed(self, encoding: CompressionEncoding) -> MsgClient<T>
pub fn accept_compressed(self, encoding: CompressionEncoding) -> MsgClient<T>
Enable decompressing responses.
pub fn max_decoding_message_size(self, limit: usize) -> MsgClient<T>
pub fn max_decoding_message_size(self, limit: usize) -> MsgClient<T>
Limits the maximum size of a decoded message.
Default: 4MB
pub fn max_encoding_message_size(self, limit: usize) -> MsgClient<T>
pub fn max_encoding_message_size(self, limit: usize) -> MsgClient<T>
Limits the maximum size of an encoded message.
Default: usize::MAX
pub async fn deposit_to_megavault(
&mut self,
request: impl IntoRequest<MsgDepositToMegavault>,
) -> Result<Response<MsgDepositToMegavaultResponse>, Status>
pub async fn deposit_to_megavault( &mut self, request: impl IntoRequest<MsgDepositToMegavault>, ) -> Result<Response<MsgDepositToMegavaultResponse>, Status>
DepositToMegavault deposits funds into megavault.
pub async fn withdraw_from_megavault(
&mut self,
request: impl IntoRequest<MsgWithdrawFromMegavault>,
) -> Result<Response<MsgWithdrawFromMegavaultResponse>, Status>
pub async fn withdraw_from_megavault( &mut self, request: impl IntoRequest<MsgWithdrawFromMegavault>, ) -> Result<Response<MsgWithdrawFromMegavaultResponse>, Status>
WithdrawFromMegavault withdraws shares from megavault.
pub async fn update_default_quoting_params(
&mut self,
request: impl IntoRequest<MsgUpdateDefaultQuotingParams>,
) -> Result<Response<MsgUpdateDefaultQuotingParamsResponse>, Status>
pub async fn update_default_quoting_params( &mut self, request: impl IntoRequest<MsgUpdateDefaultQuotingParams>, ) -> Result<Response<MsgUpdateDefaultQuotingParamsResponse>, Status>
UpdateDefaultQuotingParams updates the default quoting params in state.
pub async fn update_operator_params(
&mut self,
request: impl IntoRequest<MsgUpdateOperatorParams>,
) -> Result<Response<MsgUpdateOperatorParamsResponse>, Status>
pub async fn update_operator_params( &mut self, request: impl IntoRequest<MsgUpdateOperatorParams>, ) -> Result<Response<MsgUpdateOperatorParamsResponse>, Status>
UpdateOperatorParams sets the parameters regarding megavault operator.
pub async fn set_vault_params(
&mut self,
request: impl IntoRequest<MsgSetVaultParams>,
) -> Result<Response<MsgSetVaultParamsResponse>, Status>
pub async fn set_vault_params( &mut self, request: impl IntoRequest<MsgSetVaultParams>, ) -> Result<Response<MsgSetVaultParamsResponse>, Status>
SetVaultParams sets the parameters of a specific vault.
UnlockShares unlocks an owner’s shares that are due to unlock by the block height that this transaction is included in.
pub async fn allocate_to_vault(
&mut self,
request: impl IntoRequest<MsgAllocateToVault>,
) -> Result<Response<MsgAllocateToVaultResponse>, Status>
pub async fn allocate_to_vault( &mut self, request: impl IntoRequest<MsgAllocateToVault>, ) -> Result<Response<MsgAllocateToVaultResponse>, Status>
AllocateToVault allocates funds from main vault to a vault.
pub async fn retrieve_from_vault(
&mut self,
request: impl IntoRequest<MsgRetrieveFromVault>,
) -> Result<Response<MsgRetrieveFromVaultResponse>, Status>
pub async fn retrieve_from_vault( &mut self, request: impl IntoRequest<MsgRetrieveFromVault>, ) -> Result<Response<MsgRetrieveFromVaultResponse>, Status>
RetrieveFromVault retrieves funds from a vault to main vault.
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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].