pub struct MsgClient<T> { /* private fields */ }
Expand description
Msg defines the ibc/channel 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 channel_open_init(
&mut self,
request: impl IntoRequest<MsgChannelOpenInit>
) -> Result<Response<MsgChannelOpenInitResponse>, Status>
pub async fn channel_open_init( &mut self, request: impl IntoRequest<MsgChannelOpenInit> ) -> Result<Response<MsgChannelOpenInitResponse>, Status>
ChannelOpenInit defines a rpc handler method for MsgChannelOpenInit.
sourcepub async fn channel_open_try(
&mut self,
request: impl IntoRequest<MsgChannelOpenTry>
) -> Result<Response<MsgChannelOpenTryResponse>, Status>
pub async fn channel_open_try( &mut self, request: impl IntoRequest<MsgChannelOpenTry> ) -> Result<Response<MsgChannelOpenTryResponse>, Status>
ChannelOpenTry defines a rpc handler method for MsgChannelOpenTry.
sourcepub async fn channel_open_ack(
&mut self,
request: impl IntoRequest<MsgChannelOpenAck>
) -> Result<Response<MsgChannelOpenAckResponse>, Status>
pub async fn channel_open_ack( &mut self, request: impl IntoRequest<MsgChannelOpenAck> ) -> Result<Response<MsgChannelOpenAckResponse>, Status>
ChannelOpenAck defines a rpc handler method for MsgChannelOpenAck.
sourcepub async fn channel_open_confirm(
&mut self,
request: impl IntoRequest<MsgChannelOpenConfirm>
) -> Result<Response<MsgChannelOpenConfirmResponse>, Status>
pub async fn channel_open_confirm( &mut self, request: impl IntoRequest<MsgChannelOpenConfirm> ) -> Result<Response<MsgChannelOpenConfirmResponse>, Status>
ChannelOpenConfirm defines a rpc handler method for MsgChannelOpenConfirm.
sourcepub async fn channel_close_init(
&mut self,
request: impl IntoRequest<MsgChannelCloseInit>
) -> Result<Response<MsgChannelCloseInitResponse>, Status>
pub async fn channel_close_init( &mut self, request: impl IntoRequest<MsgChannelCloseInit> ) -> Result<Response<MsgChannelCloseInitResponse>, Status>
ChannelCloseInit defines a rpc handler method for MsgChannelCloseInit.
sourcepub async fn channel_close_confirm(
&mut self,
request: impl IntoRequest<MsgChannelCloseConfirm>
) -> Result<Response<MsgChannelCloseConfirmResponse>, Status>
pub async fn channel_close_confirm( &mut self, request: impl IntoRequest<MsgChannelCloseConfirm> ) -> Result<Response<MsgChannelCloseConfirmResponse>, Status>
ChannelCloseConfirm defines a rpc handler method for MsgChannelCloseConfirm.
sourcepub async fn recv_packet(
&mut self,
request: impl IntoRequest<MsgRecvPacket>
) -> Result<Response<MsgRecvPacketResponse>, Status>
pub async fn recv_packet( &mut self, request: impl IntoRequest<MsgRecvPacket> ) -> Result<Response<MsgRecvPacketResponse>, Status>
RecvPacket defines a rpc handler method for MsgRecvPacket.
sourcepub async fn timeout(
&mut self,
request: impl IntoRequest<MsgTimeout>
) -> Result<Response<MsgTimeoutResponse>, Status>
pub async fn timeout( &mut self, request: impl IntoRequest<MsgTimeout> ) -> Result<Response<MsgTimeoutResponse>, Status>
Timeout defines a rpc handler method for MsgTimeout.
sourcepub async fn timeout_on_close(
&mut self,
request: impl IntoRequest<MsgTimeoutOnClose>
) -> Result<Response<MsgTimeoutOnCloseResponse>, Status>
pub async fn timeout_on_close( &mut self, request: impl IntoRequest<MsgTimeoutOnClose> ) -> Result<Response<MsgTimeoutOnCloseResponse>, Status>
TimeoutOnClose defines a rpc handler method for MsgTimeoutOnClose.
sourcepub async fn acknowledgement(
&mut self,
request: impl IntoRequest<MsgAcknowledgement>
) -> Result<Response<MsgAcknowledgementResponse>, Status>
pub async fn acknowledgement( &mut self, request: impl IntoRequest<MsgAcknowledgement> ) -> Result<Response<MsgAcknowledgementResponse>, Status>
Acknowledgement defines a rpc handler method for MsgAcknowledgement.
Trait Implementations§
Auto Trait Implementations§
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
§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> 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