#[repr(u16)]pub enum ErrorCode {
Show 14 variants
ProtocolVersionMismatch = 1_000,
InvalidStartup = 1_001,
ParseError = 2_000,
QueryError = 2_001,
InvalidQuery = 2_002,
EmptyQuery = 2_003,
TxError = 3_000,
TxAborted = 3_001,
TxNotIndexed = 3_002,
InternalError = 4_000,
MessageTooLarge = 4_001,
InvalidMessageType = 4_002,
QueryCancelled = 4_003,
ServerShuttingDown = 4_004,
}Variants§
ProtocolVersionMismatch = 1_000
InvalidStartup = 1_001
ParseError = 2_000
QueryError = 2_001
InvalidQuery = 2_002
EmptyQuery = 2_003
TxError = 3_000
TxAborted = 3_001
TxNotIndexed = 3_002
InternalError = 4_000
MessageTooLarge = 4_001
InvalidMessageType = 4_002
QueryCancelled = 4_003
ServerShuttingDown = 4_004
Implementations§
Trait Implementations§
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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>
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