#[repr(u32)]pub enum ReqState {
Show 22 variants
Start = 0,
ReqType = 1,
SpacesBeforeKey = 2,
Key = 3,
SpacesBeforeKeys = 4,
SpacesBeforeFlags = 5,
Flags = 6,
SpacesBeforeExpiry = 7,
Expiry = 8,
SpacesBeforeVlen = 9,
Vlen = 10,
SpacesBeforeCas = 11,
Cas = 12,
RuntoVal = 13,
Val = 14,
SpacesBeforeNum = 15,
Num = 16,
RuntoCrlf = 17,
Crlf = 18,
Noreply = 19,
AfterNoreply = 20,
AlmostDone = 21,
}Expand description
State alphabet for memcache_parse_req.
The numeric values match the reference engine’s request state indices so external parity tooling can compare them directly.
Variants§
Start = 0
Initial state.
ReqType = 1
Reading the command keyword.
SpacesBeforeKey = 2
Skipping spaces before the first key.
Key = 3
Reading a key.
SpacesBeforeKeys = 4
Skipping spaces between keys (get/gets).
SpacesBeforeFlags = 5
Skipping spaces before the storage flags field.
Flags = 6
Reading the storage flags field.
SpacesBeforeExpiry = 7
Skipping spaces before the storage expiry field.
Expiry = 8
Reading the storage expiry field.
SpacesBeforeVlen = 9
Skipping spaces before the value-length field.
Vlen = 10
Reading the value-length field.
SpacesBeforeCas = 11
Skipping spaces before the CAS unique field.
Cas = 12
Reading the CAS unique field.
RuntoVal = 13
Awaiting LF before the value bytes.
Val = 14
Consuming the value bytes.
SpacesBeforeNum = 15
Skipping spaces before the arithmetic numeric argument.
Num = 16
Reading the arithmetic numeric argument.
RuntoCrlf = 17
Eating optional trailing bytes up to CR.
Crlf = 18
Awaiting trailing CR.
Noreply = 19
Reading the optional noreply token.
AfterNoreply = 20
State after consuming noreply.
AlmostDone = 21
Awaiting the trailing LF that terminates the request.
Trait Implementations§
impl Copy for ReqState
impl Eq for ReqState
impl StructuralPartialEq for ReqState
Auto Trait Implementations§
impl Freeze for ReqState
impl RefUnwindSafe for ReqState
impl Send for ReqState
impl Sync for ReqState
impl Unpin for ReqState
impl UnsafeUnpin for ReqState
impl UnwindSafe for ReqState
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
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
key and return true if they are equal.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.