#[repr(u8)]pub enum StateRead {
KeyRange = 128,
KeyRangeExtern = 129,
PostKeyRange = 130,
PostKeyRangeExtern = 131,
}
Expand description
Operations related to reading state.
Variants§
KeyRange = 128
0x80
Opcode associated with the StateRead::KeyRange operation.
KeyRangeExtern = 129
0x81
Opcode associated with the StateRead::KeyRangeExtern operation.
PostKeyRange = 130
0x82
Opcode associated with the StateRead::PostKeyRange operation.
PostKeyRangeExtern = 131
0x83
Opcode associated with the StateRead::PostKeyRangeExtern operation.
Trait Implementations§
Source§impl Ord for StateRead
impl Ord for StateRead
Source§impl ParseOp for StateRead
impl ParseOp for StateRead
Source§fn parse_op(
&self,
bytes: &mut impl Iterator<Item = u8>,
) -> Result<Self::Op, Self::Error>
fn parse_op( &self, bytes: &mut impl Iterator<Item = u8>, ) -> Result<Self::Op, Self::Error>
Attempt to parse the operation associated with the opcode from the given bytes.
Only consumes the bytes necessary to construct any associated data.
Returns an error in the case that the given bytes
iterator
contains insufficient bytes to parse the op.
Source§type Error = NotEnoughBytesError
type Error = NotEnoughBytesError
Any error that might occur while parsing.
Source§impl PartialOrd for StateRead
impl PartialOrd for StateRead
impl Copy for StateRead
impl Eq for StateRead
impl StructuralPartialEq for StateRead
Auto Trait Implementations§
impl Freeze for StateRead
impl RefUnwindSafe for StateRead
impl Send for StateRead
impl Sync for StateRead
impl Unpin for StateRead
impl UnwindSafe for StateRead
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