Enum rbdc_sqlite::connection::Command
source · pub enum Command {
Prepare {
query: Box<str>,
tx: Sender<Result<SqliteStatement, Error>>,
},
Execute {
query: Box<str>,
arguments: Option<SqliteArguments>,
persistent: bool,
tx: Sender<Result<Either<SqliteQueryResult, SqliteRow>, Error>>,
},
CreateCollation {
create_collation: Box<dyn FnOnce(&mut ConnectionState) -> Result<(), Error> + Send + Sync + 'static>,
},
UnlockDb,
ClearCache {
tx: Sender<()>,
},
Ping {
tx: Sender<()>,
},
Shutdown {
tx: Sender<()>,
},
}Variants§
Prepare
Execute
Fields
§
arguments: Option<SqliteArguments>CreateCollation
Fields
UnlockDb
ClearCache
Ping
Shutdown
Auto Trait Implementations§
impl !RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl !UnwindSafe for Command
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