[−][src]Struct nature_db::TaskDaoImpl
Methods
impl TaskDaoImpl
[src]
pub fn insert(raw: &RawTask) -> Result<usize>
[src]
pub fn delete(record_id: &[u8]) -> Result<usize>
[src]
pub fn delete_finished(delay: i64) -> Result<usize>
[src]
delete finished task after delay
seconds
pub fn raw_to_error(err: &NatureError, raw: &RawTask) -> Result<usize>
[src]
pub fn get_overdue(delay: i64, lim: i64) -> Result<Vec<RawTask>>
[src]
pub fn update_execute_time(record_id: &[u8], delay: i64) -> Result<()>
[src]
pub fn finish_task(record_id: &[u8]) -> Result<usize>
[src]
pub fn increase_times_and_delay(record_id: &[u8], delay: i32) -> Result<usize>
[src]
increase one times and delay delay
seconds
pub fn get(record_id: &[u8]) -> Result<Option<RawTask>>
[src]
Auto Trait Implementations
impl RefUnwindSafe for TaskDaoImpl
impl Send for TaskDaoImpl
impl Sync for TaskDaoImpl
impl Unpin for TaskDaoImpl
impl UnwindSafe for TaskDaoImpl
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoSql for T
[src]
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
[src]
&'a Self: AsExpression<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,