pub enum ChangesTrieCacheAction<H, N> {
CacheBuildData(CachedBuildData<H, N>),
Clear,
}
Expand description
The action to perform when block-with-changes-trie is imported.
Variants
CacheBuildData(CachedBuildData<H, N>)
Cache data that has been collected when CT has been built.
Clear
Clear cache from all existing entries.
Trait Implementations
sourceimpl<H: Debug, N: Debug> Debug for CacheAction<H, N>
impl<H: Debug, N: Debug> Debug for CacheAction<H, N>
sourceimpl<H: PartialEq, N: PartialEq> PartialEq<CacheAction<H, N>> for CacheAction<H, N>
impl<H: PartialEq, N: PartialEq> PartialEq<CacheAction<H, N>> for CacheAction<H, N>
sourcefn eq(&self, other: &CacheAction<H, N>) -> bool
fn eq(&self, other: &CacheAction<H, N>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CacheAction<H, N>) -> bool
fn ne(&self, other: &CacheAction<H, N>) -> bool
This method tests for !=
.
impl<H, N> StructuralPartialEq for CacheAction<H, N>
Auto Trait Implementations
impl<H, N> RefUnwindSafe for CacheAction<H, N> where
H: RefUnwindSafe,
N: RefUnwindSafe,
impl<H, N> Send for CacheAction<H, N> where
H: Send,
N: Send,
impl<H, N> Sync for CacheAction<H, N> where
H: Sync,
N: Sync,
impl<H, N> Unpin for CacheAction<H, N> where
H: Unpin,
N: Unpin,
impl<H, N> UnwindSafe for CacheAction<H, N> where
H: UnwindSafe,
N: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T, Outer> IsWrappedBy<Outer> for T where
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T, Outer> IsWrappedBy<Outer> for T where
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
sourceimpl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
sourcepub fn unchecked_into(self) -> T
pub fn unchecked_into(self) -> T
The counterpart to unchecked_from
.