Enum opensrv_clickhouse::errors::Error
source · pub enum Error {
Driver(DriverError),
IO(Error),
Connection(ConnectionError),
Other(Cow<'static, str>),
Server(ServerError),
Url(UrlError),
FromSql(FromSqlError),
}Expand description
This type enumerates library errors.
Variants§
Driver(DriverError)
IO(Error)
Connection(ConnectionError)
Other(Cow<'static, str>)
Server(ServerError)
Url(UrlError)
FromSql(FromSqlError)
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)>
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<ConnectionError> for Error
impl From<ConnectionError> for Error
source§fn from(error: ConnectionError) -> Self
fn from(error: ConnectionError) -> Self
Converts to this type from the input type.
source§impl From<DriverError> for Error
impl From<DriverError> for Error
source§fn from(err: DriverError) -> Self
fn from(err: DriverError) -> Self
Converts to this type from the input type.
source§impl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
source§fn from(err: FromUtf8Error) -> Self
fn from(err: FromUtf8Error) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for Error
impl From<ParseError> for Error
source§fn from(err: ParseError) -> Self
fn from(err: ParseError) -> Self
Converts to this type from the input type.
source§impl From<ServerError> for Error
impl From<ServerError> for Error
source§fn from(err: ServerError) -> Self
fn from(err: ServerError) -> Self
Converts to this type from the input type.