Struct reth_prune_types::PruneCheckpoint
source · pub struct PruneCheckpoint {
pub block_number: Option<BlockNumber>,
pub tx_number: Option<TxNumber>,
pub prune_mode: PruneMode,
}
Expand description
Saves the pruning progress of a stage.
Fields§
§block_number: Option<BlockNumber>
Highest pruned block number. If it’s None, the pruning for block 0
is not finished yet.
tx_number: Option<TxNumber>
Highest pruned transaction number, if applicable.
prune_mode: PruneMode
Prune mode.
Implementations§
source§impl PruneCheckpoint
impl PruneCheckpoint
sourcepub const fn bitflag_encoded_bytes() -> usize
pub const fn bitflag_encoded_bytes() -> usize
Used bytes by [PruneCheckpointFlags
]
Trait Implementations§
source§impl Clone for PruneCheckpoint
impl Clone for PruneCheckpoint
source§fn clone(&self) -> PruneCheckpoint
fn clone(&self) -> PruneCheckpoint
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 Compact for PruneCheckpoint
impl Compact for PruneCheckpoint
source§fn to_compact<B>(&self, buf: &mut B) -> usize
fn to_compact<B>(&self, buf: &mut B) -> usize
Takes a buffer which can be written to. Ideally, it returns the length written to.
source§fn from_compact(buf: &[u8], len: usize) -> (Self, &[u8])
fn from_compact(buf: &[u8], len: usize) -> (Self, &[u8])
Takes a buffer which can be read from. Returns the object and
buf
with its internal cursor
advanced (eg..advance(len)
). Read more§fn specialized_to_compact<B>(&self, buf: &mut B) -> usize
fn specialized_to_compact<B>(&self, buf: &mut B) -> usize
“Optional”: If there’s no good reason to use it, don’t.
§fn specialized_from_compact(buf: &[u8], len: usize) -> (Self, &[u8])
fn specialized_from_compact(buf: &[u8], len: usize) -> (Self, &[u8])
“Optional”: If there’s no good reason to use it, don’t.
source§impl Debug for PruneCheckpoint
impl Debug for PruneCheckpoint
source§impl<'de> Deserialize<'de> for PruneCheckpoint
impl<'de> Deserialize<'de> for PruneCheckpoint
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 PruneCheckpoint
impl PartialEq for PruneCheckpoint
source§impl Serialize for PruneCheckpoint
impl Serialize for PruneCheckpoint
impl Copy for PruneCheckpoint
impl Eq for PruneCheckpoint
impl StructuralPartialEq for PruneCheckpoint
Auto Trait Implementations§
impl Freeze for PruneCheckpoint
impl RefUnwindSafe for PruneCheckpoint
impl Send for PruneCheckpoint
impl Sync for PruneCheckpoint
impl Unpin for PruneCheckpoint
impl UnwindSafe for PruneCheckpoint
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 48 bytes