pub trait RetrieveHeader<'a, T> {
// Required method
fn retrieve_header(&'a self, key: &str) -> Option<T>;
}Expand description
Artificial trait implemented for AMQPProperties to allow conveniently
extracting the header value by key, coercing it into various types.
Required Methods§
Sourcefn retrieve_header(&'a self, key: &str) -> Option<T>
fn retrieve_header(&'a self, key: &str) -> Option<T>
Extracts the header value by key from these AMQPProperties, if it is
present and can be coerced to type T.
Implementations on Foreign Types§
Source§impl<'a, T> RetrieveHeader<'a, T> for AMQPProperties
Implements RetrieveHeader for every type T for which the underlying
AMQPValue implements Coerce.
impl<'a, T> RetrieveHeader<'a, T> for AMQPProperties
Implements RetrieveHeader for every type T for which the underlying
AMQPValue implements Coerce.