pub enum BatchValidity {
Drop,
Accept,
Undecided,
Future,
Past,
}
Expand description
Batch Validity
Variants§
Drop
The batch is invalid now and in the future, unless we reorg, so it can be discarded.
Accept
The batch is valid and should be processed
Undecided
We are lacking L1 information until we can proceed batch filtering
Future
The batch may be valid, but cannot be processed yet and should be checked again later
Past
Introduced in Holocene, a special variant of the Drop
variant that signals not to flush
the active batch and channel, in the case of processing an old batch
Implementations§
Source§impl BatchValidity
impl BatchValidity
Sourcepub const fn is_outdated(&self) -> bool
pub const fn is_outdated(&self) -> bool
Returns whether the batch is outdated.
Trait Implementations§
Source§impl Clone for BatchValidity
impl Clone for BatchValidity
Source§fn clone(&self) -> BatchValidity
fn clone(&self) -> BatchValidity
Returns a copy 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 BatchValidity
impl Debug for BatchValidity
Source§impl<'de> Deserialize<'de> for BatchValidity
impl<'de> Deserialize<'de> for BatchValidity
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 PartialEq for BatchValidity
impl PartialEq for BatchValidity
Source§impl Serialize for BatchValidity
impl Serialize for BatchValidity
impl Copy for BatchValidity
impl Eq for BatchValidity
impl StructuralPartialEq for BatchValidity
Auto Trait Implementations§
impl Freeze for BatchValidity
impl RefUnwindSafe for BatchValidity
impl Send for BatchValidity
impl Sync for BatchValidity
impl Unpin for BatchValidity
impl UnwindSafe for BatchValidity
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)