pub struct DbExecutor(pub Pool<ConnectionManager<SqliteConnection>>);
Expand description
This is db executor actor. We are going to run 3 of them in parallel.
Tuple Fields§
§0: Pool<ConnectionManager<SqliteConnection>>
Trait Implementations§
Source§impl Actor for DbExecutor
impl Actor for DbExecutor
Source§type Context = SyncContext<DbExecutor>
type Context = SyncContext<DbExecutor>
Actor execution context type
Source§fn started(&mut self, ctx: &mut Self::Context)
fn started(&mut self, ctx: &mut Self::Context)
Method is called when actor get polled first time.
Source§fn stopping(&mut self, ctx: &mut Self::Context) -> Running
fn stopping(&mut self, ctx: &mut Self::Context) -> Running
Method is called after an actor is in
Actor::Stopping
state. There
could be several reasons for stopping. Context::stop
get called
by the actor itself. All addresses to current actor get dropped and
no more evented objects left in the context. Read moreSource§impl Handler<CheckGpioLevel> for DbExecutor
impl Handler<CheckGpioLevel> for DbExecutor
Source§impl Handler<GpioId> for DbExecutor
impl Handler<GpioId> for DbExecutor
Auto Trait Implementations§
impl Freeze for DbExecutor
impl !RefUnwindSafe for DbExecutor
impl Send for DbExecutor
impl Sync for DbExecutor
impl Unpin for DbExecutor
impl !UnwindSafe for DbExecutor
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
Source§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more