pub enum ErrorKind {
Io,
Eof,
Protocol,
Type,
Oom,
Cancelled,
Server,
Usage,
WouldBlock,
Other(c_int),
}Expand description
Category corresponding to a clickhouse-c CHC_ERR_* code.
Variants§
Io
Transport operation failed or read deadline expired.
Eof
Stream ended before required data was available.
Protocol
Protocol data was invalid or unsupported.
Type
Type name was invalid or column did not match its declared type.
Oom
Allocator returned a null pointer.
Cancelled
CancelToken was set before a read.
Server
Server rejected handshake with an exception. See
Error::server_code and Error::server_name for details. Query
exceptions arrive as Event::Exception.
Usage
API input was invalid.
WouldBlock
I/O-independent client requires more input. Blocking client does not return this category.
Other(c_int)
Error code is not represented by another variant.
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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