pub struct BackendError {
pub crossing: Crossing,
pub kind: DatabaseKind,
pub path: Path,
}Expand description
ONE CELL of the record’s declared conversion errors: which crossing, which database, and the type its fallible impls answer with.
Two axes rather than one, and the second is what the flat shape could not express: a record’s row decode and its crossing onto the wire are different impls with different callers, so a declaration may want them to answer differently — and every cell is independent, an absent one taking the boxed refusal on its own.
Fields§
§crossing: CrossingWhich crossing’s impls answer with it.
kind: DatabaseKindWhich database’s.
path: PathThe type, as the declaration spelled it.
Trait Implementations§
Source§impl Clone for BackendError
impl Clone for BackendError
Auto Trait Implementations§
impl !Send for BackendError
impl !Sync for BackendError
impl Freeze for BackendError
impl RefUnwindSafe for BackendError
impl Unpin for BackendError
impl UnsafeUnpin for BackendError
impl UnwindSafe for BackendError
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