pub struct HeaderCache { /* private fields */ }Expand description
Bounded cache of block headers keyed by block hash.
Retains only the latest HEADER_CACHE_LIMIT block headers based on height.
Implementations§
Source§impl HeaderCache
impl HeaderCache
Auto Trait Implementations§
impl Freeze for HeaderCache
impl RefUnwindSafe for HeaderCache
impl Send for HeaderCache
impl Sync for HeaderCache
impl Unpin for HeaderCache
impl UnsafeUnpin for HeaderCache
impl UnwindSafe for HeaderCache
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