Skip to main content

Checker

Trait Checker 

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

Checker checks *Message attribute.

Required Methods§

Source

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

Validates this value against m.

Used by attributes whose value depends on the encoded message, such as MESSAGE-INTEGRITY and FINGERPRINT.

§Errors

Fails if the check does not hold.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§