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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ContentDigestMode
Source§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
impl Eq for ContentDigestMode
Source§impl<'de> FromToml<'de> for ContentDigestMode
impl<'de> FromToml<'de> for ContentDigestMode
Source§impl Hash for ContentDigestMode
impl Hash for ContentDigestMode
Source§impl PartialEq for ContentDigestMode
impl PartialEq for ContentDigestMode
Source§fn eq(&self, other: &ContentDigestMode) -> bool
fn eq(&self, other: &ContentDigestMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ContentDigestMode
Source§impl ToToml for ContentDigestMode
impl ToToml for ContentDigestMode
Source§fn to_optional_toml<'a>(
&'a self,
arena: &'a Arena,
) -> Result<Option<Item<'a>>, ToTomlError>
fn to_optional_toml<'a>( &'a self, arena: &'a Arena, ) -> Result<Option<Item<'a>>, ToTomlError>
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
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> 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<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