Enum taos_query::DsnError
source · pub enum DsnError {
PortErr(ParseIntError),
InvalidDriver(String),
InvalidProtocol(String),
InvalidPassword(String, FromUtf8Error),
InvalidConnection(String),
InvalidAddresses(String, String),
RequireDatabase(String),
RequireParam(String),
InvalidParam(String, String),
NonUtf8Character(FromUtf8Error),
}
Expand description
Error caused by pest DSN parser.
Variants§
PortErr(ParseIntError)
InvalidDriver(String)
InvalidProtocol(String)
InvalidPassword(String, FromUtf8Error)
InvalidConnection(String)
InvalidAddresses(String, String)
RequireDatabase(String)
RequireParam(String)
InvalidParam(String, String)
NonUtf8Character(FromUtf8Error)
Trait Implementations§
source§impl Error for DsnError
impl Error for DsnError
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<FromUtf8Error> for DsnError
impl From<FromUtf8Error> for DsnError
source§fn from(source: FromUtf8Error) -> DsnError
fn from(source: FromUtf8Error) -> DsnError
Converts to this type from the input type.
source§impl From<ParseIntError> for DsnError
impl From<ParseIntError> for DsnError
source§fn from(source: ParseIntError) -> DsnError
fn from(source: ParseIntError) -> DsnError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DsnError
impl RefUnwindSafe for DsnError
impl Send for DsnError
impl Sync for DsnError
impl Unpin for DsnError
impl UnwindSafe for DsnError
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