pub enum TimeFilterResult {
Matched,
TooNewModified,
TooNewCreated,
TooNewBoth,
}Expand description
Outcome of evaluating a TimeFilter against a metadata entry.
Variants§
Matched
entry passes both configured time thresholds (or no thresholds are set)
TooNewModified
entry’s mtime is too recent to satisfy modified_before
TooNewCreated
entry’s btime is too recent to satisfy created_before
TooNewBoth
entry fails both modified_before and created_before
Implementations§
Source§impl TimeFilterResult
impl TimeFilterResult
Sourcepub fn as_skip_reason(self) -> Option<TimeSkipReason>
pub fn as_skip_reason(self) -> Option<TimeSkipReason>
Returns the skip reason when this result represents a skip, or None when matched.
Trait Implementations§
Source§impl Clone for TimeFilterResult
impl Clone for TimeFilterResult
Source§fn clone(&self) -> TimeFilterResult
fn clone(&self) -> TimeFilterResult
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 TimeFilterResult
impl Debug for TimeFilterResult
Source§impl PartialEq for TimeFilterResult
impl PartialEq for TimeFilterResult
Source§fn eq(&self, other: &TimeFilterResult) -> bool
fn eq(&self, other: &TimeFilterResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TimeFilterResult
impl Eq for TimeFilterResult
impl StructuralPartialEq for TimeFilterResult
Auto Trait Implementations§
impl Freeze for TimeFilterResult
impl RefUnwindSafe for TimeFilterResult
impl Send for TimeFilterResult
impl Sync for TimeFilterResult
impl Unpin for TimeFilterResult
impl UnsafeUnpin for TimeFilterResult
impl UnwindSafe for TimeFilterResult
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§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<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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request