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 Freeze for BlockChunk
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
Source§impl<T> Downcast for T
impl<T> Downcast for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more