pub struct MsgClient<T> { /* private fields */ }
Expand description
Msg defines the staking Msg service.
Implementations
impl<T> MsgClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> MsgClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn with_interceptor<F>(
inner: T,
interceptor: F
) -> MsgClient<InterceptedService<T, F>> where
F: Interceptor,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
Compress requests with gzip
.
This requires the server to support it otherwise it might respond with an error.
Enable decompressing responses with gzip
.
pub async fn create_validator(
&mut self,
request: impl IntoRequest<MsgCreateValidator>
) -> Result<Response<MsgCreateValidatorResponse>, Status>
pub async fn create_validator(
&mut self,
request: impl IntoRequest<MsgCreateValidator>
) -> Result<Response<MsgCreateValidatorResponse>, Status>
CreateValidator defines a method for creating a new validator.
pub async fn edit_validator(
&mut self,
request: impl IntoRequest<MsgEditValidator>
) -> Result<Response<MsgEditValidatorResponse>, Status>
pub async fn edit_validator(
&mut self,
request: impl IntoRequest<MsgEditValidator>
) -> Result<Response<MsgEditValidatorResponse>, Status>
EditValidator defines a method for editing an existing validator.
pub async fn delegate(
&mut self,
request: impl IntoRequest<MsgDelegate>
) -> Result<Response<MsgDelegateResponse>, Status>
pub async fn delegate(
&mut self,
request: impl IntoRequest<MsgDelegate>
) -> Result<Response<MsgDelegateResponse>, Status>
Delegate defines a method for performing a delegation of coins from a delegator to a validator.
pub async fn begin_redelegate(
&mut self,
request: impl IntoRequest<MsgBeginRedelegate>
) -> Result<Response<MsgBeginRedelegateResponse>, Status>
pub async fn begin_redelegate(
&mut self,
request: impl IntoRequest<MsgBeginRedelegate>
) -> Result<Response<MsgBeginRedelegateResponse>, Status>
BeginRedelegate defines a method for performing a redelegation of coins from a delegator and source validator to a destination validator.
pub async fn undelegate(
&mut self,
request: impl IntoRequest<MsgUndelegate>
) -> Result<Response<MsgUndelegateResponse>, Status>
pub async fn undelegate(
&mut self,
request: impl IntoRequest<MsgUndelegate>
) -> Result<Response<MsgUndelegateResponse>, Status>
Undelegate defines a method for performing an undelegation from a delegate and a validator.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for MsgClient<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for MsgClient<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more