pub enum OutputUpdate<TBl, TAsync> {
Finalized {
former_index: NodeIndex,
user_data: TBl,
former_finalized_async_op_user_data: TAsync,
best_output_block_updated: bool,
pruned_blocks: Vec<(NodeIndex, TBl, Option<TAsync>)>,
},
Block(OutputUpdateBlock),
BestBlockChanged {
best_block_index: Option<NodeIndex>,
},
}Expand description
Variants§
Finalized
A non-finalized block has been finalized in the output.
This block is no longer part of the data structure.
Blocks are guaranteed to be finalized one after the other, without any gap.
Fields
§
former_index: NodeIndexIndex of the node within the data structure. This index is no longer valid and is here for reference.
§
user_data: TBlUser data associated to this block.
§
former_finalized_async_op_user_data: TAsyncUser data associated to the async operation of the previous finalized block.
Block(OutputUpdateBlock)
A new block has been added to the list of output unfinalized blocks.
BestBlockChanged
The output best block has been modified.
Trait Implementations§
Source§impl<TBl: Clone, TAsync: Clone> Clone for OutputUpdate<TBl, TAsync>
impl<TBl: Clone, TAsync: Clone> Clone for OutputUpdate<TBl, TAsync>
Source§fn clone(&self) -> OutputUpdate<TBl, TAsync>
fn clone(&self) -> OutputUpdate<TBl, TAsync>
Returns a duplicate 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 moreimpl<TBl: Eq, TAsync: Eq> Eq for OutputUpdate<TBl, TAsync>
impl<TBl, TAsync> StructuralPartialEq for OutputUpdate<TBl, TAsync>
Auto Trait Implementations§
impl<TBl, TAsync> Freeze for OutputUpdate<TBl, TAsync>
impl<TBl, TAsync> RefUnwindSafe for OutputUpdate<TBl, TAsync>where
TBl: RefUnwindSafe,
TAsync: RefUnwindSafe,
impl<TBl, TAsync> Send for OutputUpdate<TBl, TAsync>
impl<TBl, TAsync> Sync for OutputUpdate<TBl, TAsync>
impl<TBl, TAsync> Unpin for OutputUpdate<TBl, TAsync>
impl<TBl, TAsync> UnwindSafe for OutputUpdate<TBl, TAsync>where
TBl: UnwindSafe,
TAsync: UnwindSafe,
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,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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>
Converts
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>
Converts
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