Enum CosmosTxEvents
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§
§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§
§impl<'a> From<&'a [Event]> for CosmosTxEvents<'a>
impl<'a> From<&'a [Event]> for CosmosTxEvents<'a>
§fn from(events: &'a [Event]) -> CosmosTxEvents<'a>
fn from(events: &'a [Event]) -> CosmosTxEvents<'a>
Converts to this type from the input type.
§impl<'a> From<&'a [Event]> for CosmosTxEvents<'a>
impl<'a> From<&'a [Event]> for CosmosTxEvents<'a>
§fn from(events: &'a [Event]) -> CosmosTxEvents<'a>
fn from(events: &'a [Event]) -> CosmosTxEvents<'a>
Converts to this type from the input type.
§impl<'a> From<&'a TxResponse> for CosmosTxEvents<'a>
impl<'a> From<&'a TxResponse> for CosmosTxEvents<'a>
§fn from(resp: &'a TxResponse) -> CosmosTxEvents<'a>
fn from(resp: &'a TxResponse) -> CosmosTxEvents<'a>
Converts to this type from the input type.
§impl From<TxResponse> for CosmosTxEvents<'static>
impl From<TxResponse> for CosmosTxEvents<'static>
§fn from(resp: TxResponse) -> CosmosTxEvents<'static>
fn from(resp: TxResponse) -> CosmosTxEvents<'static>
Converts to this type from the input type.
§impl From<Vec<Event>> for CosmosTxEvents<'static>
impl From<Vec<Event>> for CosmosTxEvents<'static>
§fn from(events: Vec<Event>) -> CosmosTxEvents<'static>
fn from(events: Vec<Event>) -> CosmosTxEvents<'static>
Converts to this type from the input type.
§impl From<Vec<Event>> for CosmosTxEvents<'static>
impl From<Vec<Event>> for CosmosTxEvents<'static>
§fn from(events: Vec<Event>) -> CosmosTxEvents<'static>
fn from(events: Vec<Event>) -> 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§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moreSource§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
§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>
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 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>
Wrap the input message
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>,
Applies the layer to a service and wraps it in [
Layered
].