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: PruneModePrune 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]
Sourcepub const fn bitflag_unused_bits() -> usize
 
pub const fn bitflag_unused_bits() -> usize
Unused bits for new fields by [PruneCheckpointFlags]
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for PruneCheckpoint
 
impl<'arbitrary> Arbitrary<'arbitrary> for PruneCheckpoint
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
 
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of 
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
 
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of 
Self from the entirety of the given
unstructured data. Read moreSource§impl Clone for PruneCheckpoint
 
impl Clone for PruneCheckpoint
Source§fn clone(&self) -> PruneCheckpoint
 
fn clone(&self) -> PruneCheckpoint
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 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 Default for PruneCheckpoint
 
impl Default for PruneCheckpoint
Source§fn default() -> PruneCheckpoint
 
fn default() -> PruneCheckpoint
Returns the “default value” for a type. Read more
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
Compare self to 
key and return true if they are equal.§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>
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§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<'de, T> BorrowedRpcObject<'de> for Twhere
    T: RpcBorrow<'de> + RpcSend,
impl<T> DeserializeOwned for Twhere
    T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
    T: 'static,
impl<T> MaybeSend for Twhere
    T: Send,
impl<'de, T> RpcBorrow<'de> for T
impl<T> RpcObject for Twhere
    T: RpcSend + RpcRecv,
impl<T> RpcRecv for T
impl<T> RpcSend for T
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