pub enum ContentDigestMode {
Strong,
Weak,
}Expand description
Represents the supported modes for calculating content digests.
Variants§
Strong
Use a strong digest for file content.
Strong digests require hashing all of the contents of a file; this may noticeably impact performance for very large files.
This setting guarantees that a modified file will be detected.
Weak
Use a weak digest for file content.
A weak digest is based solely off of file metadata, such as size and last modified time.
This setting cannot guarantee the detection of modified files and may result in a modified file not causing a call cache entry to be invalidated.
However, it is substantially faster than using a strong digest.
Trait Implementations§
Source§impl Clone for ContentDigestMode
impl Clone for ContentDigestMode
Source§fn clone(&self) -> ContentDigestMode
fn clone(&self) -> ContentDigestMode
Returns a duplicate of the value. Read more
1.0.0 · 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 ContentDigestMode
impl Debug for ContentDigestMode
Source§impl Default for ContentDigestMode
impl Default for ContentDigestMode
Source§fn default() -> ContentDigestMode
fn default() -> ContentDigestMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContentDigestMode
impl<'de> Deserialize<'de> for ContentDigestMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ContentDigestMode
impl Hash for ContentDigestMode
Source§impl PartialEq for ContentDigestMode
impl PartialEq for ContentDigestMode
Source§impl Serialize for ContentDigestMode
impl Serialize for ContentDigestMode
impl Copy for ContentDigestMode
impl Eq for ContentDigestMode
impl StructuralPartialEq for ContentDigestMode
Auto Trait Implementations§
impl Freeze for ContentDigestMode
impl RefUnwindSafe for ContentDigestMode
impl Send for ContentDigestMode
impl Sync for ContentDigestMode
impl Unpin for ContentDigestMode
impl UnsafeUnpin for ContentDigestMode
impl UnwindSafe for ContentDigestMode
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<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
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