#[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<<StateRead as ParseOp>::Op, <StateRead as ParseOp>::Error>
fn parse_op( &self, bytes: &mut impl Iterator<Item = u8>, ) -> Result<<StateRead as ParseOp>::Op, <StateRead as ParseOp>::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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more