pub enum Operation {
Query {
op_id: u64,
keys: Vec<StorageKey>,
},
Get {
op_id: u64,
keys: Vec<StorageKey>,
host_blocks: Vec<i32>,
},
Put {
op_id: u64,
keys: Vec<StorageKey>,
host_blocks: Vec<i32>,
},
Cancel {
op_id: u64,
},
}Expand description
A storage operation a plan starts (StorageOperation).
Variants§
Query
Which keys the store holds.
Get
Fetch keys into Host blocks.
Fields
§
keys: Vec<StorageKey>The keys.
Put
Store Host blocks under keys.
Fields
§
keys: Vec<StorageKey>The keys.
Cancel
Cancel an earlier operation; it gets no completion of its own.
Trait Implementations§
impl Eq for Operation
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl UnwindSafe for Operation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compares
self with key and returns true if they are equal.