pub enum PruneSegment {
    SenderRecovery,
    TransactionLookup,
    Receipts,
    ContractLogs,
    AccountHistory,
    StorageHistory,
    Headers,
    Transactions,
}Expand description
Segment of the data that can be pruned.
Variants§
SenderRecovery
Prune segment responsible for the TransactionSenders table.
TransactionLookup
Prune segment responsible for the TransactionHashNumbers table.
Receipts
Prune segment responsible for all rows in Receipts table.
ContractLogs
Prune segment responsible for some rows in Receipts table filtered by logs.
AccountHistory
Prune segment responsible for the AccountChangeSets and AccountsHistory tables.
StorageHistory
Prune segment responsible for the StorageChangeSets and StoragesHistory tables.
Headers
Prune segment responsible for the CanonicalHeaders, Headers and
HeaderTerminalDifficulties tables.
Transactions
Prune segment responsible for the Transactions table.
Implementations§
Source§impl PruneSegment
 
impl PruneSegment
Sourcepub const fn bitflag_encoded_bytes() -> usize
 
pub const fn bitflag_encoded_bytes() -> usize
Used bytes by [PruneSegmentFlags]
Sourcepub const fn bitflag_unused_bits() -> usize
 
pub const fn bitflag_unused_bits() -> usize
Unused bits for new fields by [PruneSegmentFlags]
Source§impl PruneSegment
 
impl PruneSegment
Sourcepub const fn min_blocks(&self, purpose: PrunePurpose) -> u64
 
pub const fn min_blocks(&self, purpose: PrunePurpose) -> u64
Returns minimum number of blocks to keep in the database for this segment.
Trait Implementations§
Source§impl Clone for PruneSegment
 
impl Clone for PruneSegment
Source§fn clone(&self) -> PruneSegment
 
fn clone(&self) -> PruneSegment
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Compact for PruneSegment
 
impl Compact for PruneSegment
Source§fn to_compact<B>(&self, buf: &mut B) -> usize
 
fn to_compact<B>(&self, buf: &mut B) -> usize
Source§fn from_compact(buf: &[u8], len: usize) -> (Self, &[u8])
 
fn from_compact(buf: &[u8], len: usize) -> (Self, &[u8])
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
§fn specialized_from_compact(buf: &[u8], len: usize) -> (Self, &[u8])
 
fn specialized_from_compact(buf: &[u8], len: usize) -> (Self, &[u8])
Source§impl Debug for PruneSegment
 
impl Debug for PruneSegment
Source§impl<'de> Deserialize<'de> for PruneSegment
 
impl<'de> Deserialize<'de> for PruneSegment
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>,
Source§impl Display for PruneSegment
 
impl Display for PruneSegment
Source§impl Hash for PruneSegment
 
impl Hash for PruneSegment
Source§impl Ord for PruneSegment
 
impl Ord for PruneSegment
Source§fn cmp(&self, other: &PruneSegment) -> Ordering
 
fn cmp(&self, other: &PruneSegment) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere
    Self: Sized,
Source§impl PartialEq for PruneSegment
 
impl PartialEq for PruneSegment
Source§impl PartialOrd for PruneSegment
 
impl PartialOrd for PruneSegment
Source§impl Serialize for PruneSegment
 
impl Serialize for PruneSegment
impl Copy for PruneSegment
impl Eq for PruneSegment
impl StructuralPartialEq for PruneSegment
Auto Trait Implementations§
impl Freeze for PruneSegment
impl RefUnwindSafe for PruneSegment
impl Send for PruneSegment
impl Sync for PruneSegment
impl Unpin for PruneSegment
impl UnwindSafe for PruneSegment
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
§impl<Q, K> Comparable<K> for Q
 
impl<Q, K> Comparable<K> for Q
§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
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>
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>
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: 1 byte
Size for each variant:
- SenderRecovery: 0 bytes
- TransactionLookup: 0 bytes
- Receipts: 0 bytes
- ContractLogs: 0 bytes
- AccountHistory: 0 bytes
- StorageHistory: 0 bytes
- Headers: 0 bytes
- Transactions: 0 bytes