pub struct BlockProcessingBatch {
pub blocks: Vec<Block>,
pub block_tasks: Option<Vec<BlockValidationFuture>>,
pub virtual_state_tasks: Option<Vec<BlockValidationFuture>>,
}Fields§
§blocks: Vec<Block>§block_tasks: Option<Vec<BlockValidationFuture>>§virtual_state_tasks: Option<Vec<BlockValidationFuture>>Implementations§
Source§impl BlockProcessingBatch
impl BlockProcessingBatch
pub fn new( blocks: Vec<Block>, block_tasks: Vec<BlockValidationFuture>, virtual_state_tasks: Vec<BlockValidationFuture>, ) -> Self
pub fn zip(self) -> impl Iterator<Item = (Block, BlockValidationFuture)>
Trait Implementations§
Source§impl Debug for BlockProcessingBatch
impl Debug for BlockProcessingBatch
Auto Trait Implementations§
impl Freeze for BlockProcessingBatch
impl !RefUnwindSafe for BlockProcessingBatch
impl Send for BlockProcessingBatch
impl !Sync for BlockProcessingBatch
impl Unpin for BlockProcessingBatch
impl !UnwindSafe for BlockProcessingBatch
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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> CastFrom for Twhere
T: Any + 'static,
impl<T> CastFrom for Twhere
T: Any + 'static,
Source§fn ref_any(&self) -> &(dyn Any + 'static)
fn ref_any(&self) -> &(dyn Any + 'static)
Returns a immutable reference to
Any, which is backed by the type implementing this trait.Source§fn mut_any(&mut self) -> &mut (dyn Any + 'static)
fn mut_any(&mut self) -> &mut (dyn Any + 'static)
Returns a mutable reference to
Any, which is backed by the type implementing this trait.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