msg_auth_status/
traits.rs

1//! WIP - Traits beginnings not done yet
2//!
3//! Idea of these traits is to enable non-allocated version
4//! of parsing results without any sort of Vec and generalise
5//! the implementation between allocating and non-allocating
6
7/// Implement this to denote it's a DKIM Verifier containing result set
8#[allow(unused_variables, dead_code)]
9pub(crate) trait ResultsVerifier {
10    fn return_path_atleast_one_dkim_pass(&self, selector: &str) -> bool;
11}
12
13#[allow(unused_variables, dead_code)]
14pub(crate) trait ResultVerifier {
15    fn return_path_dkim_pass(&self, selector: &str) -> bool;
16}
17
18/// Tie-in Controller for consumers
19#[allow(dead_code)]
20pub(crate) trait ResultsHandler {}
21
22/// Receive DkimResults for consumers
23#[allow(dead_code)]
24pub(crate) trait DkimResultsHandler {}
25
26/// Receive SpfResults for consumers
27#[allow(dead_code)]
28pub(crate) trait SpfResultsHandler {}
29
30/// Receive AuthResults for consumers
31#[allow(dead_code)]
32pub(crate) trait AuthResultsHandler {}
33
34/// Receive IpRevResults for consumers
35#[allow(dead_code)]
36pub(crate) trait IpRevResultsHandler {}
37
38/// Receive Comments for consumers
39#[allow(dead_code)]
40pub(crate) trait CommentsHandler {}