pub enum DriverError {
Show 15 variants
Connection(String),
Authentication(String),
Protocol(String),
Session(String),
Transaction(String),
Query {
code: String,
message: String,
},
Timeout(String),
Pool(String),
Configuration(String),
Serialization(String),
TypeConversion(String),
Server {
code: String,
message: String,
},
ServiceUnavailable(String),
Io(Error),
Internal(String),
}Expand description
드라이버 에러
Variants§
Connection(String)
연결 에러
Authentication(String)
인증 에러
Protocol(String)
프로토콜 에러
Session(String)
세션 에러
Transaction(String)
트랜잭션 에러
Query
쿼리 에러
Timeout(String)
타임아웃 에러
Pool(String)
풀 에러
Configuration(String)
설정 에러
Serialization(String)
직렬화 에러
TypeConversion(String)
타입 변환 에러
Server
서버 에러
서비스 불가
Io(Error)
I/O 에러
Internal(String)
내부 에러
Implementations§
Source§impl DriverError
impl DriverError
Sourcepub fn connection(msg: impl Into<String>) -> Self
pub fn connection(msg: impl Into<String>) -> Self
연결 에러 생성
Sourcepub fn authentication(msg: impl Into<String>) -> Self
pub fn authentication(msg: impl Into<String>) -> Self
인증 에러 생성
Sourcepub fn transaction(msg: impl Into<String>) -> Self
pub fn transaction(msg: impl Into<String>) -> Self
트랜잭션 에러 생성
Sourcepub fn configuration(msg: impl Into<String>) -> Self
pub fn configuration(msg: impl Into<String>) -> Self
설정 에러 생성
서비스 불가 에러 생성
Sourcepub fn type_conversion(msg: impl Into<String>) -> Self
pub fn type_conversion(msg: impl Into<String>) -> Self
타입 변환 에러 생성
Sourcepub fn is_retryable(&self) -> bool
pub fn is_retryable(&self) -> bool
재시도 가능 여부
Sourcepub fn is_client_error(&self) -> bool
pub fn is_client_error(&self) -> bool
클라이언트 에러 여부
Trait Implementations§
Source§impl Debug for DriverError
impl Debug for DriverError
Source§impl Display for DriverError
impl Display for DriverError
Source§impl Error for DriverError
impl Error for DriverError
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 From<BoltError> for DriverError
impl From<BoltError> for DriverError
Auto Trait Implementations§
impl Freeze for DriverError
impl !RefUnwindSafe for DriverError
impl Send for DriverError
impl Sync for DriverError
impl Unpin for DriverError
impl !UnwindSafe for DriverError
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