pub struct Parameters<'x, P, TXT, MXX, IPV4, IPV6, PTR>where
TXT: ResolverCache<Box<str>, Txt>,
MXX: ResolverCache<Box<str>, Arc<[MX]>>,
IPV4: ResolverCache<Box<str>, Arc<[Ipv4Addr]>>,
IPV6: ResolverCache<Box<str>, Arc<[Ipv6Addr]>>,
PTR: ResolverCache<IpAddr, Arc<[Box<str>]>>,{
pub params: P,
pub cache_txt: Option<&'x TXT>,
pub cache_mx: Option<&'x MXX>,
pub cache_ptr: Option<&'x PTR>,
pub cache_ipv4: Option<&'x IPV4>,
pub cache_ipv6: Option<&'x IPV6>,
}Fields§
§params: P§cache_txt: Option<&'x TXT>§cache_mx: Option<&'x MXX>§cache_ptr: Option<&'x PTR>§cache_ipv4: Option<&'x IPV4>§cache_ipv6: Option<&'x IPV6>Implementations§
Source§impl<P> Parameters<'_, P, 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<P> Parameters<'_, P, 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§impl<'x, P, TXT, MXX, IPV4, IPV6, PTR> Parameters<'x, P, TXT, MXX, IPV4, IPV6, PTR>where
TXT: ResolverCache<Box<str>, Txt>,
MXX: ResolverCache<Box<str>, Arc<[MX]>>,
IPV4: ResolverCache<Box<str>, Arc<[Ipv4Addr]>>,
IPV6: ResolverCache<Box<str>, Arc<[Ipv6Addr]>>,
PTR: ResolverCache<IpAddr, Arc<[Box<str>]>>,
impl<'x, P, TXT, MXX, IPV4, IPV6, PTR> Parameters<'x, P, TXT, MXX, IPV4, IPV6, PTR>where
TXT: ResolverCache<Box<str>, Txt>,
MXX: ResolverCache<Box<str>, Arc<[MX]>>,
IPV4: ResolverCache<Box<str>, Arc<[Ipv4Addr]>>,
IPV6: ResolverCache<Box<str>, Arc<[Ipv6Addr]>>,
PTR: ResolverCache<IpAddr, Arc<[Box<str>]>>,
pub fn with_txt_cache<NewTXT: ResolverCache<Box<str>, Txt>>( self, cache: &'x NewTXT, ) -> Parameters<'x, P, NewTXT, MXX, IPV4, IPV6, PTR>
pub fn with_mx_cache<NewMX: ResolverCache<Box<str>, Arc<[MX]>>>( self, cache: &'x NewMX, ) -> Parameters<'x, P, TXT, NewMX, IPV4, IPV6, PTR>
pub fn with_ptr_cache<NewPTR: ResolverCache<IpAddr, Arc<[Box<str>]>>>( self, cache: &'x NewPTR, ) -> Parameters<'x, P, TXT, MXX, IPV4, IPV6, NewPTR>
pub fn with_ipv4_cache<NewIPV4: ResolverCache<Box<str>, Arc<[Ipv4Addr]>>>( self, cache: &'x NewIPV4, ) -> Parameters<'x, P, TXT, MXX, NewIPV4, IPV6, PTR>
pub fn with_ipv6_cache<NewIPV6: ResolverCache<Box<str>, Arc<[Ipv6Addr]>>>( self, cache: &'x NewIPV6, ) -> Parameters<'x, P, TXT, MXX, IPV4, NewIPV6, PTR>
pub fn clone_with<NewP>( &self, params: NewP, ) -> Parameters<'x, NewP, TXT, MXX, IPV4, IPV6, PTR>
Trait Implementations§
Source§impl<'x> From<&'x AuthenticatedMessage<'x>> for Parameters<'x, &'x AuthenticatedMessage<'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<&'x AuthenticatedMessage<'x>> for Parameters<'x, &'x AuthenticatedMessage<'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: &'x AuthenticatedMessage<'x>) -> Self
fn from(params: &'x AuthenticatedMessage<'x>) -> Self
Converts to this type from the input type.
Source§impl<'x, F> From<DmarcParameters<'x, F>> for Parameters<'x, DmarcParameters<'x, F>, 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, F> From<DmarcParameters<'x, F>> for Parameters<'x, DmarcParameters<'x, F>, 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: DmarcParameters<'x, F>) -> Self
fn from(params: DmarcParameters<'x, F>) -> Self
Converts to this type from the input type.
Source§impl From<IpAddr> for Parameters<'_, IpAddr, 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 From<IpAddr> for Parameters<'_, IpAddr, 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§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, P, TXT, MXX, IPV4, IPV6, PTR> Freeze for Parameters<'x, P, TXT, MXX, IPV4, IPV6, PTR>where
P: Freeze,
impl<'x, P, TXT, MXX, IPV4, IPV6, PTR> RefUnwindSafe for Parameters<'x, P, TXT, MXX, IPV4, IPV6, PTR>where
P: RefUnwindSafe,
TXT: RefUnwindSafe,
MXX: RefUnwindSafe,
PTR: RefUnwindSafe,
IPV4: RefUnwindSafe,
IPV6: RefUnwindSafe,
impl<'x, P, TXT, MXX, IPV4, IPV6, PTR> Send for Parameters<'x, P, TXT, MXX, IPV4, IPV6, PTR>
impl<'x, P, TXT, MXX, IPV4, IPV6, PTR> Sync for Parameters<'x, P, TXT, MXX, IPV4, IPV6, PTR>
impl<'x, P, TXT, MXX, IPV4, IPV6, PTR> Unpin for Parameters<'x, P, TXT, MXX, IPV4, IPV6, PTR>where
P: Unpin,
impl<'x, P, TXT, MXX, IPV4, IPV6, PTR> UnsafeUnpin for Parameters<'x, P, TXT, MXX, IPV4, IPV6, PTR>where
P: UnsafeUnpin,
impl<'x, P, TXT, MXX, IPV4, IPV6, PTR> UnwindSafe for Parameters<'x, P, TXT, MXX, IPV4, IPV6, PTR>where
P: UnwindSafe,
TXT: RefUnwindSafe,
MXX: RefUnwindSafe,
PTR: RefUnwindSafe,
IPV4: RefUnwindSafe,
IPV6: RefUnwindSafe,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more