Struct vls_protocol::msgs::BlockChunk
source · pub struct BlockChunk {
pub hash: BlockHash,
pub offset: u32,
pub content: Octets,
}
Expand description
Start or continue streaming a full block.
Used when the compact proof has a false positive.
The hash and the offset are provided to fail fast
if there is a communication error.
The stream of messages is always followed by an AddBlock
with
a proof type ExternalBlock
.
Fields§
§hash: BlockHash
§offset: u32
§content: Octets
Trait Implementations§
source§impl BigEndianEncodable for BlockChunk
impl BigEndianEncodable for BlockChunk
source§impl DeBolt for BlockChunk
impl DeBolt for BlockChunk
source§impl Debug for BlockChunk
impl Debug for BlockChunk
source§impl Decodable for BlockChunk
impl Decodable for BlockChunk
source§impl Encodable for BlockChunk
impl Encodable for BlockChunk
Auto Trait Implementations§
impl RefUnwindSafe for BlockChunk
impl Send for BlockChunk
impl Sync for BlockChunk
impl Unpin for BlockChunk
impl UnwindSafe for BlockChunk
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