pub enum MsgParseResult {
Ok,
Error,
Repair,
Fragment,
Again,
Noop,
DynoConfig,
OomError,
}Expand description
Parser outcome reported by datastore protocol decoders.
The variants mirror the reference engine’s msg_parse_result_t
so downstream callers can dispatch on the same semantics.
Variants§
Ok
Parsing completed for this message.
Error
Parser detected unrecoverable framing error.
Repair
Parser consumed valid bytes but expects to be re-driven on the trailing bytes after a buffer split.
Fragment
Multi-key request needs to be fragmented before forwarding.
Again
Need more bytes; caller must read more before retrying.
Noop
Parsing succeeded; downstream layer should take no action.
DynoConfig
Message was a Dynomite configuration directive.
OomError
Out-of-memory while parsing.
Trait Implementations§
Source§impl Clone for MsgParseResult
impl Clone for MsgParseResult
Source§fn clone(&self) -> MsgParseResult
fn clone(&self) -> MsgParseResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MsgParseResult
impl Debug for MsgParseResult
Source§impl Default for MsgParseResult
impl Default for MsgParseResult
Source§fn default() -> MsgParseResult
fn default() -> MsgParseResult
Returns the “default value” for a type. Read more
Source§impl PartialEq for MsgParseResult
impl PartialEq for MsgParseResult
Source§fn eq(&self, other: &MsgParseResult) -> bool
fn eq(&self, other: &MsgParseResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for MsgParseResult
impl Eq for MsgParseResult
impl StructuralPartialEq for MsgParseResult
Auto Trait Implementations§
impl Freeze for MsgParseResult
impl RefUnwindSafe for MsgParseResult
impl Send for MsgParseResult
impl Sync for MsgParseResult
impl Unpin for MsgParseResult
impl UnsafeUnpin for MsgParseResult
impl UnwindSafe for MsgParseResult
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<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
Compare self to
key and return true if they are equal.