pub enum NewBlockEvent {
Created(Arc<SealedFuelBlock>),
Included(Arc<SealedFuelBlock>),
}Expand description
Currently just placeholder for new block included and new block created events. TODO remove this after relayer pull request passes
Variants
Created(Arc<SealedFuelBlock>)
Included(Arc<SealedFuelBlock>)
Implementations
sourceimpl NewBlockEvent
impl NewBlockEvent
pub fn block(&self) -> &Arc<SealedFuelBlock>
pub fn height(&self) -> BlockHeight
pub fn id(&self) -> Bytes32
Trait Implementations
sourceimpl Clone for NewBlockEvent
impl Clone for NewBlockEvent
sourcefn clone(&self) -> NewBlockEvent
fn clone(&self) -> NewBlockEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for NewBlockEvent
impl Send for NewBlockEvent
impl Sync for NewBlockEvent
impl Unpin for NewBlockEvent
impl UnwindSafe for NewBlockEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more