RetrieveClusterId

Trait RetrieveClusterId 

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

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

Required Methods§

Source

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

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

Implementations on Foreign Types§

Source§

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

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

Implementors§