pub enum LinKv {
Cas {
msg_id: MsgId,
key: Key,
from: Val,
to: Val,
},
CasOk {
in_reply_to: MsgId,
msg_id: Option<MsgId>,
},
Read {
msg_id: MsgId,
key: Key,
},
ReadOk {
in_reply_to: MsgId,
msg_id: Option<MsgId>,
value: Val,
},
Write {
msg_id: MsgId,
key: Key,
value: Val,
},
WriteOk {
in_reply_to: MsgId,
},
}Expand description
Maelstrom Lin-kv workload messages
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LinKv
impl<'de> Deserialize<'de> for LinKv
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 Eq for LinKv
impl StructuralPartialEq for LinKv
Auto Trait Implementations§
impl Freeze for LinKv
impl RefUnwindSafe for LinKv
impl Send for LinKv
impl Sync for LinKv
impl Unpin for LinKv
impl UnwindSafe for LinKv
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