RetrieveContentEncoding

Trait RetrieveContentEncoding 

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

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

Required Methods§

Source

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

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

Implementations on Foreign Types§

Source§

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

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

Implementors§