Enum ethcore_sync::PriorityTask
source · [−]pub enum PriorityTask {
PropagateBlock {
started: Instant,
block: Bytes,
hash: H256,
difficulty: U256,
},
PropagateTransactions(Instant, Arc<AtomicBool>),
}
Expand description
A prioritized tasks run in a specialised timer. Every task should be completed within a hard deadline, if it’s not it’s either cancelled or split into multiple tasks. NOTE These tasks might not complete at all, so anything that happens here should work even if the task is cancelled.
Variants
PropagateBlock
Fields
started: Instant
When the task was initiated
block: Bytes
Raw block RLP to propagate
hash: H256
Block hash
difficulty: U256
Blocks difficulty
Propagate given block
PropagateTransactions(Instant, Arc<AtomicBool>)
Propagate a list of transactions
Implementations
sourceimpl PriorityTask
impl PriorityTask
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PriorityTask
impl Send for PriorityTask
impl Sync for PriorityTask
impl Unpin for PriorityTask
impl UnwindSafe for PriorityTask
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