pub enum CosmosTxEvents<'a> {
TxResponseRef(&'a TxResponse),
TxResponseOwned(Box<TxResponse>),
Tendermint2ListRef(&'a [Event]),
Tendermint2ListOwned(Box<Vec<Event>>),
CosmWasmRef(&'a [Event]),
CosmWasmOwned(Box<Vec<Event>>),
}Variants§
TxResponseRef(&'a TxResponse)
TxResponseOwned(Box<TxResponse>)
Tendermint2ListRef(&'a [Event])
Tendermint2ListOwned(Box<Vec<Event>>)
CosmWasmRef(&'a [Event])
CosmWasmOwned(Box<Vec<Event>>)
Implementations§
Source§impl<'a> CosmosTxEvents<'a>
impl<'a> CosmosTxEvents<'a>
pub fn events_iter(&'a self) -> Box<dyn Iterator<Item = Event<'a>> + 'a>
pub fn filter_events_by_type<'b>(
&'a self,
ty: &'b str,
) -> impl Iterator<Item = Event<'a>> + 'awhere
'b: 'a,
pub fn filter_events_by_attr_key<'b>(
&'a self,
ty: &'b str,
key: &'b str,
) -> impl Iterator<Item = Event<'a>> + 'awhere
'b: 'a,
pub fn filter_attrs<'b>(
&'a self,
ty: &'b str,
key: &'b str,
) -> impl Iterator<Item = Attribute<'a>> + 'awhere
'b: 'a,
pub fn filter_map_attrs<'b, T, F>( &'a self, ty: &'b str, key: &'b str, f: F, ) -> impl Iterator<Item = T> + 'a
pub fn event_first_by_type<'b>(
&'a self,
ty: &'b str,
) -> Result<Event<'a>, Error>where
'b: 'a,
pub fn event_first_by_attr_key<'b>(
&'a self,
ty: &'b str,
key: &'b str,
) -> Result<Event<'a>, Error>where
'b: 'a,
pub fn attr_first<'b>(
&'a self,
ty: &'b str,
key: &'b str,
) -> Result<Attribute<'a>, Error>where
'b: 'a,
pub fn map_attr_first<'b, T, F>( &'a self, ty: &'b str, key: &'b str, f: F, ) -> Result<T, Error>
pub fn event_last_by_type<'b>(&'a self, ty: &'b str) -> Result<Event<'a>, Error>where
'b: 'a,
pub fn event_last_by_attr_key<'b>(
&'a self,
ty: &'b str,
key: &'b str,
) -> Result<Event<'a>, Error>where
'b: 'a,
pub fn attr_last<'b>(
&'a self,
ty: &'b str,
key: &'b str,
) -> Result<Attribute<'a>, Error>where
'b: 'a,
pub fn map_attr_last<'b, T, F>( &'a self, ty: &'b str, key: &'b str, f: F, ) -> Result<T, Error>
Trait Implementations§
Source§impl<'a> From<&'a [Event]> for CosmosTxEvents<'a>
impl<'a> From<&'a [Event]> for CosmosTxEvents<'a>
Source§fn from(events: &'a [Event]) -> CosmosTxEvents<'a>
fn from(events: &'a [Event]) -> CosmosTxEvents<'a>
Converts to this type from the input type.
Source§impl<'a> From<&'a [Event]> for CosmosTxEvents<'a>
impl<'a> From<&'a [Event]> for CosmosTxEvents<'a>
Source§fn from(events: &'a [Event]) -> CosmosTxEvents<'a>
fn from(events: &'a [Event]) -> CosmosTxEvents<'a>
Converts to this type from the input type.
Source§impl<'a> From<&'a TxResponse> for CosmosTxEvents<'a>
impl<'a> From<&'a TxResponse> for CosmosTxEvents<'a>
Source§fn from(resp: &'a TxResponse) -> CosmosTxEvents<'a>
fn from(resp: &'a TxResponse) -> CosmosTxEvents<'a>
Converts to this type from the input type.
Source§impl From<TxResponse> for CosmosTxEvents<'static>
impl From<TxResponse> for CosmosTxEvents<'static>
Source§fn from(resp: TxResponse) -> CosmosTxEvents<'static>
fn from(resp: TxResponse) -> CosmosTxEvents<'static>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for CosmosTxEvents<'a>
impl<'a> RefUnwindSafe for CosmosTxEvents<'a>
impl<'a> Send for CosmosTxEvents<'a>
impl<'a> Sync for CosmosTxEvents<'a>
impl<'a> Unpin for CosmosTxEvents<'a>
impl<'a> UnwindSafe for CosmosTxEvents<'a>
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
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
Converts
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>
Converts
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 moreSource§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>
Wrap the input message
T in a tonic::Request