Push

Trait Push 

Source
pub trait Push<T> {
    // Required method
    fn push(&mut self, key: &str, value: T);
}
Expand description

Artificial trait implemented for FieldTable to allow inserting AMQPValues infallibly instantiated from most applicable types.

Required Methods§

Source

fn push(&mut self, key: &str, value: T)

Inserts into this FieldTable under the given key an AMQPValue instantiated from the given value.

Implementations on Foreign Types§

Source§

impl<T> Push<T> for FieldTable
where AMQPValue: Morph<T>,

Implements Push for every type T for which the underlying AMQPValue implements [MapFrom].

Source§

fn push(&mut self, key: &str, value: T)

Implementors§