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 proposed_operations(
&mut self,
request: impl IntoRequest<MsgProposedOperations>,
) -> Result<Response<MsgProposedOperationsResponse>, Status>
pub async fn proposed_operations( &mut self, request: impl IntoRequest<MsgProposedOperations>, ) -> Result<Response<MsgProposedOperationsResponse>, Status>
ProposedOperations is a temporary message used by block proposers for matching orders as part of the ABCI++ workaround.
pub async fn place_order(
&mut self,
request: impl IntoRequest<MsgPlaceOrder>,
) -> Result<Response<MsgPlaceOrderResponse>, Status>
pub async fn place_order( &mut self, request: impl IntoRequest<MsgPlaceOrder>, ) -> Result<Response<MsgPlaceOrderResponse>, Status>
PlaceOrder allows accounts to place orders on the orderbook.
pub async fn cancel_order(
&mut self,
request: impl IntoRequest<MsgCancelOrder>,
) -> Result<Response<MsgCancelOrderResponse>, Status>
pub async fn cancel_order( &mut self, request: impl IntoRequest<MsgCancelOrder>, ) -> Result<Response<MsgCancelOrderResponse>, Status>
CancelOrder allows accounts to cancel existing orders on the orderbook.
pub async fn batch_cancel(
&mut self,
request: impl IntoRequest<MsgBatchCancel>,
) -> Result<Response<MsgBatchCancelResponse>, Status>
pub async fn batch_cancel( &mut self, request: impl IntoRequest<MsgBatchCancel>, ) -> Result<Response<MsgBatchCancelResponse>, Status>
BatchCancel allows accounts to cancel a batch of orders on the orderbook.
pub async fn create_clob_pair(
&mut self,
request: impl IntoRequest<MsgCreateClobPair>,
) -> Result<Response<MsgCreateClobPairResponse>, Status>
pub async fn create_clob_pair( &mut self, request: impl IntoRequest<MsgCreateClobPair>, ) -> Result<Response<MsgCreateClobPairResponse>, Status>
CreateClobPair creates a new clob pair.
pub async fn update_clob_pair(
&mut self,
request: impl IntoRequest<MsgUpdateClobPair>,
) -> Result<Response<MsgUpdateClobPairResponse>, Status>
pub async fn update_clob_pair( &mut self, request: impl IntoRequest<MsgUpdateClobPair>, ) -> Result<Response<MsgUpdateClobPairResponse>, Status>
UpdateClobPair sets the status of a clob pair. Should return an error if the authority is not in the clob keeper’s set of authorities, if the ClobPair id is not found in state, or if the update includes an unsupported status transition.
pub async fn update_equity_tier_limit_configuration(
&mut self,
request: impl IntoRequest<MsgUpdateEquityTierLimitConfiguration>,
) -> Result<Response<MsgUpdateEquityTierLimitConfigurationResponse>, Status>
pub async fn update_equity_tier_limit_configuration( &mut self, request: impl IntoRequest<MsgUpdateEquityTierLimitConfiguration>, ) -> Result<Response<MsgUpdateEquityTierLimitConfigurationResponse>, Status>
UpdateEquityTierLimitConfiguration updates the equity tier limit configuration in state.
pub async fn update_block_rate_limit_configuration(
&mut self,
request: impl IntoRequest<MsgUpdateBlockRateLimitConfiguration>,
) -> Result<Response<MsgUpdateBlockRateLimitConfigurationResponse>, Status>
pub async fn update_block_rate_limit_configuration( &mut self, request: impl IntoRequest<MsgUpdateBlockRateLimitConfiguration>, ) -> Result<Response<MsgUpdateBlockRateLimitConfigurationResponse>, Status>
UpdateBlockRateLimitConfiguration updates the block rate limit configuration in state.
pub async fn update_liquidations_config(
&mut self,
request: impl IntoRequest<MsgUpdateLiquidationsConfig>,
) -> Result<Response<MsgUpdateLiquidationsConfigResponse>, Status>
pub async fn update_liquidations_config( &mut self, request: impl IntoRequest<MsgUpdateLiquidationsConfig>, ) -> Result<Response<MsgUpdateLiquidationsConfigResponse>, Status>
UpdateLiquidationsConfig updates the liquidations configuration in state.
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].