pub enum MoveBlock {
Use(Vec<UniqueBlock>, Vec<BlockHash>, Vec<PositionalLineageHash>, Option<Vec<Vec<u32>>>, Option<UniqueBlock>),
Deref(Vec<UniqueBlock>),
Promote(Uuid, SequenceHash, Option<u64>, Option<BlockHash>, PositionalLineageHash, Option<Vec<u32>>),
}Expand description
Represents different block movement operations in the cache For Use and Promote variants, block hashes are included for KV event publishing
Variants§
Use(Vec<UniqueBlock>, Vec<BlockHash>, Vec<PositionalLineageHash>, Option<Vec<Vec<u32>>>, Option<UniqueBlock>)
Deref(Vec<UniqueBlock>)
Promote(Uuid, SequenceHash, Option<u64>, Option<BlockHash>, PositionalLineageHash, Option<Vec<u32>>)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MoveBlock
impl<'de> Deserialize<'de> for MoveBlock
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for MoveBlock
Auto Trait Implementations§
impl Freeze for MoveBlock
impl RefUnwindSafe for MoveBlock
impl Send for MoveBlock
impl Sync for MoveBlock
impl Unpin for MoveBlock
impl UnsafeUnpin for MoveBlock
impl UnwindSafe for MoveBlock
Blanket Implementations§
impl<T> BlockMetadata for T
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