Enum sn0int::worker::DatabaseEvent
source · pub enum DatabaseEvent {
Insert(Insert),
InsertTtl((Insert, i32)),
Activity(NewActivity),
Select((Family, String)),
Update((Family, String, Update)),
}
Variants§
Insert(Insert)
InsertTtl((Insert, i32))
Activity(NewActivity)
Select((Family, String))
Update((Family, String, Update))
Implementations§
source§impl DatabaseEvent
impl DatabaseEvent
pub fn activity<T: SpinLogger>( rl: &mut Shell<'_>, spinner: &mut T, ratelimit: &mut Ratelimiter, object: NewActivity, tx: Sender<Result<DatabaseResponse, String>>, verbose: u8 )
pub fn update<T: SpinLogger>( rl: &mut Shell<'_>, spinner: &mut T, ratelimit: &mut Ratelimiter, family: &str, value: &str, update: &Update, tx: Sender<Result<DatabaseResponse, String>>, verbose: u8 )
pub fn apply<T: SpinLogger>( self, rl: &mut Shell<'_>, spinner: &mut T, ratelimit: &mut Ratelimiter, tx: Sender<Result<DatabaseResponse, String>>, verbose: u8 )
Trait Implementations§
source§impl Debug for DatabaseEvent
impl Debug for DatabaseEvent
source§impl<'de> Deserialize<'de> for DatabaseEvent
impl<'de> Deserialize<'de> for DatabaseEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl EventWithCallback for DatabaseEvent
impl EventWithCallback for DatabaseEvent
Auto Trait Implementations§
impl RefUnwindSafe for DatabaseEvent
impl Send for DatabaseEvent
impl Sync for DatabaseEvent
impl Unpin for DatabaseEvent
impl UnwindSafe for DatabaseEvent
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere T: 'a,
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: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere Self: AsExpression<T> + Sized,
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