pub struct JobRegistry { /* private fields */ }Expand description
Maps a job’s wire name back to code that can run it.
A worker reads {"name": "mail.welcome", …} and has no idea what type that
is; the registry is what closes the gap. Every job type an application
dispatches must be registered, or its jobs will fail as unknown.
Implementations§
Source§impl JobRegistry
impl JobRegistry
Trait Implementations§
Source§impl Clone for JobRegistry
impl Clone for JobRegistry
Source§impl Debug for JobRegistry
impl Debug for JobRegistry
Auto Trait Implementations§
impl !RefUnwindSafe for JobRegistry
impl !UnwindSafe for JobRegistry
impl Freeze for JobRegistry
impl Send for JobRegistry
impl Sync for JobRegistry
impl Unpin for JobRegistry
impl UnsafeUnpin for JobRegistry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Event for T
impl<T> Event for T
Source§fn event_name() -> &'static strwhere
Self: Sized,
fn event_name() -> &'static strwhere
Self: Sized,
A human-readable name, used by wildcard listeners and log output.
Always the Rust type path; see the trait docs.