pub struct StaticFileTargets {
pub headers: Option<RangeInclusive<BlockNumber>>,
pub receipts: Option<RangeInclusive<BlockNumber>>,
pub transactions: Option<RangeInclusive<BlockNumber>>,
}
Expand description
Static File targets, per data segment, measured in [BlockNumber
].
Fields§
§headers: Option<RangeInclusive<BlockNumber>>
Targeted range of headers.
receipts: Option<RangeInclusive<BlockNumber>>
Targeted range of receipts.
transactions: Option<RangeInclusive<BlockNumber>>
Targeted range of transactions.
Implementations§
Source§impl StaticFileTargets
impl StaticFileTargets
Sourcepub fn is_contiguous_to_highest_static_files(
&self,
static_files: HighestStaticFiles,
) -> bool
pub fn is_contiguous_to_highest_static_files( &self, static_files: HighestStaticFiles, ) -> bool
Returns true
if all targets are either None
or has beginning of the range equal to the
highest static file.
Trait Implementations§
Source§impl Clone for StaticFileTargets
impl Clone for StaticFileTargets
Source§fn clone(&self) -> StaticFileTargets
fn clone(&self) -> StaticFileTargets
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 StaticFileTargets
impl Debug for StaticFileTargets
Source§impl PartialEq for StaticFileTargets
impl PartialEq for StaticFileTargets
impl Eq for StaticFileTargets
impl StructuralPartialEq for StaticFileTargets
Auto Trait Implementations§
impl Freeze for StaticFileTargets
impl RefUnwindSafe for StaticFileTargets
impl Send for StaticFileTargets
impl Sync for StaticFileTargets
impl Unpin for StaticFileTargets
impl UnwindSafe for StaticFileTargets
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.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: 72 bytes