pub enum ErrorCode {
CouldNotResolveAddr,
InvalidApiCall,
SocketError,
InvalidUtf8,
InvalidName,
InvalidTimestamp,
AuthError,
TlsError,
HttpNotSupported,
ServerFlushError,
ConfigError,
}
Expand description
Category of error.
Accessible via Error’s code
method.
Variants§
CouldNotResolveAddr
The host, port, or interface was incorrect.
InvalidApiCall
Called methods in the wrong order. E.g. symbol
after column
.
SocketError
A network error connecting or flushing data out.
InvalidUtf8
The string or symbol field is not encoded in valid UTF-8.
This error is reserved for the C and C++ API.
InvalidName
The table name or column name contains bad characters.
InvalidTimestamp
The supplied timestamp is invalid.
AuthError
Error during the authentication process.
TlsError
Error during TLS handshake.
HttpNotSupported
The server does not support ILP-over-HTTP.
ServerFlushError
Error sent back from the server during flush.
ConfigError
Bad configuration.
Trait Implementations§
impl Copy for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
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