[−][src]Struct background_jobs_sled_storage::SledStorage
Methods
impl SledStorage
[src]
Trait Implementations
impl Clone for SledStorage
[src]
fn clone(&self) -> SledStorage
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Storage for SledStorage
[src]
type Error = Error
fn generate_id(&mut self) -> Result<u64, Error>
[src]
fn save_job(&mut self, job: JobInfo) -> Result<(), Error>
[src]
fn fetch_job(&mut self, id: u64) -> Result<Option<JobInfo>, Error>
[src]
fn fetch_job_from_queue(
&mut self,
queue: &str
) -> Result<Option<JobInfo>, Error>
[src]
&mut self,
queue: &str
) -> Result<Option<JobInfo>, Error>
fn queue_job(&mut self, queue: &str, id: u64) -> Result<(), Error>
[src]
fn run_job(&mut self, id: u64, runner_id: u64) -> Result<(), Error>
[src]
fn delete_job(&mut self, id: u64) -> Result<(), Error>
[src]
fn get_stats(&self) -> Result<Stats, Error>
[src]
fn update_stats<F>(&mut self, f: F) -> Result<(), Error> where
F: Fn(Stats) -> Stats,
[src]
F: Fn(Stats) -> Stats,
fn new_job(&mut self, job: NewJobInfo) -> Result<u64, Self::Error>
[src]
fn request_job(
&mut self,
queue: &str,
runner_id: u64
) -> Result<Option<JobInfo>, Self::Error>
[src]
&mut self,
queue: &str,
runner_id: u64
) -> Result<Option<JobInfo>, Self::Error>
fn return_job(&mut self, ReturnJobInfo) -> Result<(), Self::Error>
[src]
Auto Trait Implementations
impl Send for SledStorage
impl Sync for SledStorage
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<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<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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,