cartel_sqlite/open/error.rs
1use std::mem;
2
3#[derive(Debug)]
4pub enum Error {
5 /// The supplied completion still owns errors from an earlier installation.
6 Unobserved,
7 /// This local storage's database target has already been consumed.
8 AlreadyStarted,
9 Step(crate::Error),
10}
11
12impl From<crate::Error> for Error {
13 fn from(error: crate::Error) -> Self {
14 Self::Step(error)
15 }
16}
17
18const _: () = {
19 assert!(!mem::needs_drop::<Error>());
20 assert!(mem::size_of::<Error>() <= 3 * mem::size_of::<usize>());
21};