Trait Msg
pub trait Msg:
Send
+ Sync
+ 'static {
// Required methods
fn create_validator<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgCreateValidator>,
) -> Pin<Box<dyn Future<Output = Result<Response<MsgCreateValidatorResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn edit_validator<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgEditValidator>,
) -> Pin<Box<dyn Future<Output = Result<Response<MsgEditValidatorResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn delegate<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgDelegate>,
) -> Pin<Box<dyn Future<Output = Result<Response<MsgDelegateResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn begin_redelegate<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgBeginRedelegate>,
) -> Pin<Box<dyn Future<Output = Result<Response<MsgBeginRedelegateResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn undelegate<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgUndelegate>,
) -> Pin<Box<dyn Future<Output = Result<Response<MsgUndelegateResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn cancel_unbonding_delegation<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgCancelUnbondingDelegation>,
) -> Pin<Box<dyn Future<Output = Result<Response<MsgCancelUnbondingDelegationResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn update_params<'life0, 'async_trait>(
&'life0 self,
request: Request<MsgUpdateParams>,
) -> Pin<Box<dyn Future<Output = Result<Response<MsgUpdateParamsResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
Generated trait containing gRPC methods that should be implemented for use with MsgServer.