RetrieveKind

Trait RetrieveKind 

Source
pub trait RetrieveKind<'a, T> {
    // Required method
    fn retrieve_kind(&'a self) -> Option<T>;
}
Expand description

Artificial trait implemented for AMQPProperties to allow conveniently extracting the message kind, coercing it into various types.

Required Methods§

Source

fn retrieve_kind(&'a self) -> Option<T>

Extracts the message kind from these AMQPProperties, if it is present and can be coerced to type T.

Implementations on Foreign Types§

Source§

impl<'a, T> RetrieveKind<'a, T> for AMQPProperties
where ShortString: Coerce<'a, T>,

Implements RetrieveKind for every type T for which the underlying ShortString implements Coerce.

Source§

fn retrieve_kind(&'a self) -> Option<T>

Implementors§