pub struct SpfParameters<'x> { /* private fields */ }Implementations§
Source§impl<'x> SpfParameters<'x>
impl<'x> SpfParameters<'x>
Sourcepub fn verify_ehlo(
ip: IpAddr,
helo_domain: &'x str,
host_domain: &'x str,
) -> SpfParameters<'x>
pub fn verify_ehlo( ip: IpAddr, helo_domain: &'x str, host_domain: &'x str, ) -> SpfParameters<'x>
Verifies the SPF EHLO identity
Sourcepub fn verify_mail_from(
ip: IpAddr,
helo_domain: &'x str,
host_domain: &'x str,
sender: &'x str,
) -> SpfParameters<'x>
pub fn verify_mail_from( ip: IpAddr, helo_domain: &'x str, host_domain: &'x str, sender: &'x str, ) -> SpfParameters<'x>
Verifies the SPF MAIL FROM identity
Sourcepub fn verify(
ip: IpAddr,
helo_domain: &'x str,
host_domain: &'x str,
sender: &'x str,
) -> SpfParameters<'x>
pub fn verify( ip: IpAddr, helo_domain: &'x str, host_domain: &'x str, sender: &'x str, ) -> SpfParameters<'x>
Verifies both the SPF EHLO and MAIL FROM identities
pub fn new( ip: IpAddr, domain: &'x str, helo_domain: &'x str, host_domain: &'x str, sender: &'x str, ) -> Self
Trait Implementations§
Source§impl<'x> From<SpfParameters<'x>> for Parameters<'x, SpfParameters<'x>, NoCache<Box<str>, Txt>, NoCache<Box<str>, Arc<[MX]>>, NoCache<Box<str>, Arc<[Ipv4Addr]>>, NoCache<Box<str>, Arc<[Ipv6Addr]>>, NoCache<IpAddr, Arc<[Box<str>]>>>
impl<'x> From<SpfParameters<'x>> for Parameters<'x, SpfParameters<'x>, NoCache<Box<str>, Txt>, NoCache<Box<str>, Arc<[MX]>>, NoCache<Box<str>, Arc<[Ipv4Addr]>>, NoCache<Box<str>, Arc<[Ipv6Addr]>>, NoCache<IpAddr, Arc<[Box<str>]>>>
Source§fn from(params: SpfParameters<'x>) -> Self
fn from(params: SpfParameters<'x>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'x> Freeze for SpfParameters<'x>
impl<'x> RefUnwindSafe for SpfParameters<'x>
impl<'x> Send for SpfParameters<'x>
impl<'x> Sync for SpfParameters<'x>
impl<'x> Unpin for SpfParameters<'x>
impl<'x> UnsafeUnpin for SpfParameters<'x>
impl<'x> UnwindSafe for SpfParameters<'x>
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