Enum lightning_block_sync::BlockData
source · [−]pub enum BlockData {
FullBlock(Block),
HeaderOnly(BlockHeader),
}
Expand description
A block including either all its transactions or only the block header.
BlockSource
may be implemented to either always return full blocks or, in the case of
compact block filters (BIP 157/158), return header-only blocks when no pertinent transactions
match. See chain::Filter
for details on how to notify a source of such transactions.
Variants
FullBlock(Block)
A block containing all its transactions.
HeaderOnly(BlockHeader)
A block header for when the block does not contain any pertinent transactions.
Trait Implementations
sourceimpl Validate for BlockData
impl Validate for BlockData
type T = ValidatedBlock
type T = ValidatedBlock
The validated data wrapper which can be dereferenced to obtain the validated data.
Auto Trait Implementations
impl RefUnwindSafe for BlockData
impl Send for BlockData
impl Sync for BlockData
impl Unpin for BlockData
impl UnwindSafe for BlockData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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