pub enum Error {
Show 43 variants
Io(Error),
DoubleFetch,
OutOfBounds,
MissingField(&'static str),
MissingConnectionInformation,
MalformedConnectionInformation(String),
DuplicateField(&'static str),
Protocol(String),
InternalChannelError,
ConnectionTimeout(String),
ConnectionGone(&'static str),
TypeParseError(String),
DeserializeError(String),
SerializeError(String),
DeserializeErrorWithColumn(&'static str, String),
StartupError,
ServerException(ServerError),
UnexpectedType(Type),
UnexpectedTypeWithColumn(Cow<'static, str>, Type),
TypeConversion(String),
Utf8(Utf8Error),
FromUtf8(FromUtf8Error),
DateTime(TryFromIntError),
ChannelClosed,
OutgoingTimeout(String),
InvalidDnsName(String),
UnsupportedSettingType(String),
UnsupportedFieldType(String),
UndefinedSchemas,
UndefinedTables {
db: String,
tables: Vec<String>,
},
SchemaConfig(String),
DDLMalformed(String),
InsufficientDDLScope(String),
Client(String),
External(Box<dyn Error + Send + Sync>),
Unknown(String),
Arrow(ArrowError),
InsertArrowRetry(RecordBatch),
ArrowSerialize(String),
ArrowDeserialize(String),
ArrowTypeMismatch {
expected: String,
provided: String,
},
ArrowUnsupportedType(String),
BytesRead(TryGetError),
}Expand description
Represents various library errors
Variants§
Io(Error)
DoubleFetch
OutOfBounds
MissingField(&'static str)
MissingConnectionInformation
MalformedConnectionInformation(String)
DuplicateField(&'static str)
Protocol(String)
InternalChannelError
ConnectionTimeout(String)
ConnectionGone(&'static str)
TypeParseError(String)
DeserializeError(String)
SerializeError(String)
DeserializeErrorWithColumn(&'static str, String)
StartupError
ServerException(ServerError)
UnexpectedType(Type)
UnexpectedTypeWithColumn(Cow<'static, str>, Type)
TypeConversion(String)
Utf8(Utf8Error)
FromUtf8(FromUtf8Error)
DateTime(TryFromIntError)
ChannelClosed
OutgoingTimeout(String)
InvalidDnsName(String)
UnsupportedSettingType(String)
UnsupportedFieldType(String)
UndefinedSchemas
UndefinedTables
SchemaConfig(String)
DDLMalformed(String)
InsufficientDDLScope(String)
Client(String)
External(Box<dyn Error + Send + Sync>)
Unknown(String)
Arrow(ArrowError)
InsertArrowRetry(RecordBatch)
ArrowSerialize(String)
ArrowDeserialize(String)
ArrowTypeMismatch
ArrowUnsupportedType(String)
BytesRead(TryGetError)
Implementations§
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<ArrowError> for Error
impl From<ArrowError> for Error
Source§fn from(source: ArrowError) -> Self
fn from(source: ArrowError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<ServerError> for Error
impl From<ServerError> for Error
Source§fn from(error: ServerError) -> Self
fn from(error: ServerError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromIntError> for Error
impl From<TryFromIntError> for Error
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Source§impl From<TryGetError> for Error
impl From<TryGetError> for Error
Source§fn from(source: TryGetError) -> Self
fn from(source: TryGetError) -> 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