#[non_exhaustive]pub enum Error {
Response(ErrorResponse),
CallEval(Value),
Timeout,
ConnectTimeout,
Auth(ErrorResponse),
Encode(EncodingError),
Decode(DecodingError),
DuplicatedSync(u32),
SpaceMissingPrimaryIndex,
Io(Arc<Error>),
ConnectionClosed,
Other(Error),
}
Expand description
Represents all possible errors of this crate.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Response(ErrorResponse)
Error, returned in response from Tarantool instance.
CallEval(Value)
Error, returned in response on call
or eval
.
Timeout
Timeout.
ConnectTimeout
Timeout while establishing connection.
Auth(ErrorResponse)
Authorization error.
Encode(EncodingError)
Errors, related to encoding requests.
Decode(DecodingError)
Errors, related to decoding responses.
DuplicatedSync(u32)
Duplicated sync detected.
SpaceMissingPrimaryIndex
Space is missing primary index (with 0 id).
Io(Arc<Error>)
Underlying TCP connection closed.
ConnectionClosed
Underlying TCP connection was closed.
Other(Error)
Other errors that don’t deserve a separate variant.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<DecodingError> for Error
impl From<DecodingError> for Error
Source§fn from(source: DecodingError) -> Self
fn from(source: DecodingError) -> Self
Converts to this type from the input type.
Source§impl From<EncodingError> for Error
impl From<EncodingError> for Error
Source§fn from(source: EncodingError) -> Self
fn from(source: EncodingError) -> Self
Converts to this type from the input type.
Source§impl From<ErrorResponse> for Error
impl From<ErrorResponse> for Error
Source§fn from(source: ErrorResponse) -> Self
fn from(source: ErrorResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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