Enum tarantool_rs::errors::Error
source · #[non_exhaustive]pub enum Error {
Response(ErrorResponse),
Timeout,
ConnectTimeout,
Auth(ErrorResponse),
Encode(EncodingError),
Decode(DecodingError),
DuplicatedSync(u32),
MetadataLoad(Error),
ConnectionError(Arc<Error>),
ConnectionClosed,
}
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.
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.
MetadataLoad(Error)
ConnectionError(Arc<Error>)
Underlying TCP connection closed.
ConnectionClosed
Underlying TCP connection was closed.
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)>
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 !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