Enum tarantool_rs::Error
source · pub enum Error {
Response(ErrorResponse),
CallEval(Value),
Timeout,
ConnectTimeout,
Auth(ErrorResponse),
Encode(EncodingError),
Decode(DecodingError),
DuplicatedSync(u32),
SpaceMissingPrimaryIndex,
ConnectionError(Arc<Error>),
ConnectionClosed,
Other(Error),
}Expand description
Represents all possible errors of this crate.
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).
ConnectionError(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)>
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