PushExpiration

Trait PushExpiration 

Source
pub trait PushExpiration<T> {
    // Required method
    fn push_expiration(self, value: T) -> Self;
}
Expand description

Artificial trait implemented for AMQPProperties to allow conveniently inserting the expiration value, coercing it from various types.

Required Methods§

Source

fn push_expiration(self, value: T) -> Self

Inserts the expiration value into these AMQPProperties, if it can be coerced from type T.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> PushExpiration<T> for AMQPProperties
where ShortString: Morph<T>,

Implements PushExpiration for every type T for which the underlying AMQPValue implements Morph.

Source§

fn push_expiration(self, value: T) -> Self

Implementors§