pub struct Config { /* private fields */ }Expand description
A configuration object for SpamAssassin Milter.
Implementations§
Source§impl Config
impl Config
pub fn builder() -> ConfigBuilder
pub fn use_trusted_networks(&self) -> bool
pub fn is_in_trusted_networks(&self, ip: &IpAddr) -> bool
pub fn auth_untrusted(&self) -> bool
pub fn spamc_args(&self) -> &[String]
pub fn max_message_size(&self) -> usize
pub fn dry_run(&self) -> bool
pub fn reject_spam(&self) -> bool
pub fn reply_code(&self) -> &str
pub fn reply_status_code(&self) -> &str
pub fn reply_text(&self) -> &str
pub fn preserve_headers(&self) -> bool
pub fn preserve_body(&self) -> bool
pub fn verbose(&self) -> bool
Trait Implementations§
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more