pub enum BlockFetch {
RequestRange {
from: Point,
to: Point,
},
ClientDone,
StartBatch,
NoBlocks,
Block(SerializedBlock),
BatchDone,
}
Expand description
BlockFetch state machine
[] -> [RequestRange, ClientDone] RequestRange -> [StartBatch, NoBlocks] Block -> [Block, BatchDone] BatchDone -> [] ClientDone -> !
Variants§
Trait Implementations§
Source§impl Clone for BlockFetch
impl Clone for BlockFetch
Source§fn clone(&self) -> BlockFetch
fn clone(&self) -> BlockFetch
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BlockFetch
impl Debug for BlockFetch
Source§impl Decode for BlockFetch
impl Decode for BlockFetch
Source§impl<'_enum> From<&'_enum BlockFetch> for BlockFetchKind
impl<'_enum> From<&'_enum BlockFetch> for BlockFetchKind
Source§fn from(val: &'_enum BlockFetch) -> BlockFetchKind
fn from(val: &'_enum BlockFetch) -> BlockFetchKind
Converts to this type from the input type.
Source§impl From<BlockFetch> for BlockFetchKind
impl From<BlockFetch> for BlockFetchKind
Source§fn from(val: BlockFetch) -> BlockFetchKind
fn from(val: BlockFetch) -> BlockFetchKind
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BlockFetch
impl RefUnwindSafe for BlockFetch
impl Send for BlockFetch
impl Sync for BlockFetch
impl Unpin for BlockFetch
impl UnwindSafe for BlockFetch
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