Struct background_jobs_server::SyncJobWrapper
source · Expand description
A wrapper around synchronous jobs
Trait Implementations
sourceimpl<J: Clone, S: Clone> Clone for SyncJobWrapper<J, S>where
J: SyncJob<S>,
impl<J: Clone, S: Clone> Clone for SyncJobWrapper<J, S>where
J: SyncJob<S>,
sourcefn clone(&self) -> SyncJobWrapper<J, S>
fn clone(&self) -> SyncJobWrapper<J, S>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'de, J, S> Deserialize<'de> for SyncJobWrapper<J, S>where
J: SyncJob<S>,
J: Deserialize<'de>,
impl<'de, J, S> Deserialize<'de> for SyncJobWrapper<J, S>where
J: SyncJob<S>,
J: Deserialize<'de>,
sourcefn 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
sourceimpl<J, S> Job<S> for SyncJobWrapper<J, S>where
J: SyncJob<S> + Serialize + DeserializeOwned + Send + 'static,
S: Clone + Send + Sync + 'static,
impl<J, S> Job<S> for SyncJobWrapper<J, S>where
J: SyncJob<S> + Serialize + DeserializeOwned + Send + 'static,
S: Clone + Send + Sync + 'static,
sourcefn queue(&self) -> Option<&str>
fn queue(&self) -> Option<&str>
If this job should not use the default queue for its processor, this can be overridden in
user-code. Read more
sourcefn max_retries(&self) -> Option<MaxRetries>
fn max_retries(&self) -> Option<MaxRetries>
If this job should not use the default maximum retry count for its processor, this can be
overridden in user-code. Read more
sourcefn backoff_strategy(&self) -> Option<Backoff>
fn backoff_strategy(&self) -> Option<Backoff>
If this job should not use the default backoff strategy for its processor, this can be
overridden in user-code. Read more
Auto Trait Implementations
impl<J, S> RefUnwindSafe for SyncJobWrapper<J, S>where
J: RefUnwindSafe,
S: RefUnwindSafe,
impl<J, S> Send for SyncJobWrapper<J, S>where
J: Send,
S: Send,
impl<J, S> Sync for SyncJobWrapper<J, S>where
J: Sync,
S: Sync,
impl<J, S> Unpin for SyncJobWrapper<J, S>where
J: Unpin,
S: Unpin,
impl<J, S> UnwindSafe for SyncJobWrapper<J, S>where
J: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more