pub struct BlockContext<'a, F: HeaderFamily> {
pub block: &'a F::Block,
pub height: u32,
pub spending: &'a Spending,
pub mtp: Option<u32>,
pub records: &'a Records,
}Expand description
What a block-context rule sees.
Fields§
§block: &'a F::BlockThe block.
height: u32Its height.
spending: &'a SpendingThe resolved spending.
mtp: Option<u32>Median time past of the previous 11 headers, when known.
records: &'a RecordsThe overlay’s records before this block.
Trait Implementations§
Auto Trait Implementations§
impl<'a, F> Freeze for BlockContext<'a, F>
impl<'a, F> RefUnwindSafe for BlockContext<'a, F>
impl<'a, F> Send for BlockContext<'a, F>
impl<'a, F> Sync for BlockContext<'a, F>
impl<'a, F> Unpin for BlockContext<'a, F>
impl<'a, F> UnsafeUnpin for BlockContext<'a, F>
impl<'a, F> UnwindSafe for BlockContext<'a, F>
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