pub struct BlockDownloadResult {
pub success: bool,
pub data: Option<Vec<u8>>,
pub bytes_received: u64,
}Expand description
Result of a block download attempt
Fields§
§success: boolWhether the block was successfully received
data: Option<Vec<u8>>The received data (if successful)
bytes_received: u64Number of bytes received (for statistics)
Auto Trait Implementations§
impl Freeze for BlockDownloadResult
impl RefUnwindSafe for BlockDownloadResult
impl Send for BlockDownloadResult
impl Sync for BlockDownloadResult
impl Unpin for BlockDownloadResult
impl UnsafeUnpin for BlockDownloadResult
impl UnwindSafe for BlockDownloadResult
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