Skip to main content

Getter

Trait Getter 

Source
pub trait Getter {
    // Required method
    fn get_from(&mut self, m: &Message) -> Result<()>;
}
Expand description

Getter parses attribute from *Message.

Required Methods§

Source

fn get_from(&mut self, m: &Message) -> Result<()>

Decodes this value from the corresponding attribute of m.

§Errors

Fails if the attribute is absent or malformed.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§