pub struct ProcessMethod {
pub name: &'static str,
pub queue: &'static str,
pub concurrency: usize,
pub retries: usize,
pub provider_type_id: fn() -> TypeId,
pub handler: JobHandler,
}Expand description
Link-time inventory entry submitted by #[processor] for each
#[process]-tagged method. A JobConsumer drains this registry at boot
and filters by
ReachableProviders so a method on a
provider not reachable from the app’s module tree is silently skipped.
Fields§
§name: &'static str§queue: &'static str§concurrency: usize§retries: usize§provider_type_id: fn() -> TypeId§handler: JobHandlerTrait Implementations§
impl Collect for ProcessMethod
Auto Trait Implementations§
impl Freeze for ProcessMethod
impl RefUnwindSafe for ProcessMethod
impl Send for ProcessMethod
impl Sync for ProcessMethod
impl Unpin for ProcessMethod
impl UnsafeUnpin for ProcessMethod
impl UnwindSafe for ProcessMethod
Blanket Implementations§
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