pub struct RequestCacheKey { /* private fields */ }Available on crate feature
dx only.Expand description
The identity of one memoized computation within a request.
Built by #[request_cache]-generated code from the resolver’s declared
name and the values of its declared key fields.
Field values are length-prefixed when rendered, so no value can forge a
field boundary: a single field holding "1;b=1:2;" cannot collide with
two fields holding "1" and "2". A collision here would hand back
another computation’s result, which is the failure mode this type exists
to prevent.
Implementations§
Trait Implementations§
Source§impl Clone for RequestCacheKey
impl Clone for RequestCacheKey
Source§fn clone(&self) -> RequestCacheKey
fn clone(&self) -> RequestCacheKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RequestCacheKey
impl Debug for RequestCacheKey
Source§impl Display for RequestCacheKey
impl Display for RequestCacheKey
impl Eq for RequestCacheKey
Source§impl Hash for RequestCacheKey
impl Hash for RequestCacheKey
Source§impl Ord for RequestCacheKey
impl Ord for RequestCacheKey
Source§fn cmp(&self, other: &RequestCacheKey) -> Ordering
fn cmp(&self, other: &RequestCacheKey) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RequestCacheKey
impl PartialEq for RequestCacheKey
Source§impl PartialOrd for RequestCacheKey
impl PartialOrd for RequestCacheKey
impl StructuralPartialEq for RequestCacheKey
Auto Trait Implementations§
impl Freeze for RequestCacheKey
impl RefUnwindSafe for RequestCacheKey
impl Send for RequestCacheKey
impl Sync for RequestCacheKey
impl Unpin for RequestCacheKey
impl UnsafeUnpin for RequestCacheKey
impl UnwindSafe for RequestCacheKey
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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 moreimpl<T> MaybeSend for Twhere
T: Send,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> RouterState for T
Source§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP