pub struct DriverScopeError {
pub active: DatabaseDriver,
pub requested: DatabaseDriver,
}Expand description
业务作用:描述 driver task-local 的跨后端嵌套拒绝。
Fields§
§active: DatabaseDriver当前任务已绑定的 driver。
requested: DatabaseDriver本次调用请求的 driver。
Trait Implementations§
Source§impl Clone for DriverScopeError
impl Clone for DriverScopeError
impl Copy for DriverScopeError
Source§impl Debug for DriverScopeError
impl Debug for DriverScopeError
Source§impl Display for DriverScopeError
impl Display for DriverScopeError
impl Eq for DriverScopeError
Source§impl Error for DriverScopeError
impl Error for DriverScopeError
1.30.0 · 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 PartialEq for DriverScopeError
impl PartialEq for DriverScopeError
impl StructuralPartialEq for DriverScopeError
Auto Trait Implementations§
impl Forget for DriverScopeError
impl Freeze for DriverScopeError
impl Move for DriverScopeError
impl RefUnwindSafe for DriverScopeError
impl Send for DriverScopeError
impl Sync for DriverScopeError
impl Unpin for DriverScopeError
impl UnsafeUnpin for DriverScopeError
impl UnwindSafe for DriverScopeError
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