Enum apalis_core::storage::StorageWorkerPulse
source · [−]#[non_exhaustive]
pub enum StorageWorkerPulse {
EnqueueScheduled {
count: i32,
},
RenqueueOrpharned {
count: i32,
},
}Available on crate feature
storage only.Expand description
Each [Worker] sends heartbeat messages to storage
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EnqueueScheduled
Fields
count: i32the count of jobs to be scheduled
Push scheduled jobs into the active set
RenqueueOrpharned
Fields
count: i32the count of orphaned jobs
Resque any orphaned jobs
Trait Implementations
sourceimpl Clone for StorageWorkerPulse
impl Clone for StorageWorkerPulse
sourcefn clone(&self) -> StorageWorkerPulse
fn clone(&self) -> StorageWorkerPulse
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 more
sourceimpl Debug for StorageWorkerPulse
impl Debug for StorageWorkerPulse
sourceimpl<T: 'static, S: 'static, H: 'static, F> Handler<StorageWorkerPulse> for StorageWorker<T, S, H> where
S: Storage<Output = T> + Unpin + Send + Sync,
T: Job + Serialize + Debug + DeserializeOwned + Send,
H: Service<JobRequest<T>, Response = JobResult, Error = JobError, Future = F> + Unpin + Send + 'static,
F: Future<Output = Result<JobResult, JobError>> + Send,
impl<T: 'static, S: 'static, H: 'static, F> Handler<StorageWorkerPulse> for StorageWorker<T, S, H> where
S: Storage<Output = T> + Unpin + Send + Sync,
T: Job + Serialize + Debug + DeserializeOwned + Send,
H: Service<JobRequest<T>, Response = JobResult, Error = JobError, Future = F> + Unpin + Send + 'static,
F: Future<Output = Result<JobResult, JobError>> + Send,
sourceimpl Hash for StorageWorkerPulse
impl Hash for StorageWorkerPulse
sourceimpl Message for StorageWorkerPulse
impl Message for StorageWorkerPulse
sourceimpl PartialEq<StorageWorkerPulse> for StorageWorkerPulse
impl PartialEq<StorageWorkerPulse> for StorageWorkerPulse
sourcefn eq(&self, other: &StorageWorkerPulse) -> bool
fn eq(&self, other: &StorageWorkerPulse) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &StorageWorkerPulse) -> bool
fn ne(&self, other: &StorageWorkerPulse) -> bool
This method tests for !=.
impl Eq for StorageWorkerPulse
impl StructuralEq for StorageWorkerPulse
impl StructuralPartialEq for StorageWorkerPulse
Auto Trait Implementations
impl RefUnwindSafe for StorageWorkerPulse
impl Send for StorageWorkerPulse
impl Sync for StorageWorkerPulse
impl Unpin for StorageWorkerPulse
impl UnwindSafe for StorageWorkerPulse
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key and return true if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more