Enum typed_store::StoreCommand
source · [−]pub enum StoreCommand<Key, Value> {
Write(Key, Value),
WriteAll(Vec<(Key, Value)>, Sender<Result<(), StoreError>>),
Delete(Key),
DeleteAll(Vec<Key>, Sender<Result<(), StoreError>>),
Read(Key, Sender<Result<Option<Value>, StoreError>>),
ReadAll(Vec<Key>, Sender<Result<Vec<Option<Value>>, StoreError>>),
NotifyRead(Key, Sender<Result<Option<Value>, StoreError>>),
}
Variants
Write(Key, Value)
WriteAll(Vec<(Key, Value)>, Sender<Result<(), StoreError>>)
Delete(Key)
DeleteAll(Vec<Key>, Sender<Result<(), StoreError>>)
Read(Key, Sender<Result<Option<Value>, StoreError>>)
ReadAll(Vec<Key>, Sender<Result<Vec<Option<Value>>, StoreError>>)
NotifyRead(Key, Sender<Result<Option<Value>, StoreError>>)
Auto Trait Implementations
impl<Key, Value> !RefUnwindSafe for StoreCommand<Key, Value>
impl<Key, Value> Send for StoreCommand<Key, Value> where
Key: Send,
Value: Send,
impl<Key, Value> Sync for StoreCommand<Key, Value> where
Key: Sync,
Value: Send + Sync,
impl<Key, Value> Unpin for StoreCommand<Key, Value> where
Key: Unpin,
Value: Unpin,
impl<Key, Value> !UnwindSafe for StoreCommand<Key, Value>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more