pub struct HighestStaticFiles {
pub headers: Option<BlockNumber>,
pub receipts: Option<BlockNumber>,
pub transactions: Option<BlockNumber>,
}
Expand description
Highest static file block numbers, per data segment.
Fields§
§headers: Option<BlockNumber>
Highest static file block of headers, inclusive.
If None
, no static file is available.
receipts: Option<BlockNumber>
Highest static file block of receipts, inclusive.
If None
, no static file is available.
transactions: Option<BlockNumber>
Highest static file block of transactions, inclusive.
If None
, no static file is available.
Implementations§
Source§impl HighestStaticFiles
impl HighestStaticFiles
Sourcepub const fn highest(&self, segment: StaticFileSegment) -> Option<BlockNumber>
pub const fn highest(&self, segment: StaticFileSegment) -> Option<BlockNumber>
Returns the highest static file if it exists for a segment
Sourcepub fn as_mut(&mut self, segment: StaticFileSegment) -> &mut Option<BlockNumber>
pub fn as_mut(&mut self, segment: StaticFileSegment) -> &mut Option<BlockNumber>
Returns a mutable reference to a static file segment
Trait Implementations§
Source§impl Clone for HighestStaticFiles
impl Clone for HighestStaticFiles
Source§fn clone(&self) -> HighestStaticFiles
fn clone(&self) -> HighestStaticFiles
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 HighestStaticFiles
impl Debug for HighestStaticFiles
Source§impl Default for HighestStaticFiles
impl Default for HighestStaticFiles
Source§fn default() -> HighestStaticFiles
fn default() -> HighestStaticFiles
Returns the “default value” for a type. Read more
Source§impl PartialEq for HighestStaticFiles
impl PartialEq for HighestStaticFiles
impl Copy for HighestStaticFiles
impl Eq for HighestStaticFiles
impl StructuralPartialEq for HighestStaticFiles
Auto Trait Implementations§
impl Freeze for HighestStaticFiles
impl RefUnwindSafe for HighestStaticFiles
impl Send for HighestStaticFiles
impl Sync for HighestStaticFiles
impl Unpin for HighestStaticFiles
impl UnwindSafe for HighestStaticFiles
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: 48 bytes