#[non_exhaustive]pub enum Error {
InvalidCompatibilityLevel {
level: u16,
},
InvalidIdentifier {
reason: String,
},
Planning {
diagnostics: DiagnosticSet,
},
ValueConversion {
diagnostics: DiagnosticSet,
},
DirectEncoding {
diagnostics: DiagnosticSet,
},
BackendUnavailable {
backend: WriteBackend,
reason: String,
},
Tiberius {
source: Error,
},
}Expand description
Error type for arrow-tiberius operations.
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.
InvalidCompatibilityLevel
A SQL Server database compatibility level is not supported.
InvalidIdentifier
A SQL Server identifier is invalid for the selected identifier policy.
Planning
Arrow schema planning failed.
Fields
§
diagnostics: DiagnosticSetStructured planning diagnostics.
ValueConversion
Runtime value conversion failed.
Fields
§
diagnostics: DiagnosticSetStructured value conversion diagnostics.
DirectEncoding
Direct raw TDS encoding failed.
Fields
§
diagnostics: DiagnosticSetStructured direct encoding diagnostics.
A requested write backend is not available.
Tiberius
Tiberius returned an error while executing a SQL Server operation.
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 ErrorCompat for Error
impl ErrorCompat for Error
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreAuto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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