pub struct QueueManager { /* private fields */ }Implementations§
Source§impl QueueManager
impl QueueManager
pub fn new(default: &str) -> Self
pub fn register<Q: Queue + 'static>(&mut self, name: &str, queue: Q)
pub fn queue(&self, name: &str) -> Result<Arc<dyn Queue>, JobError>
pub fn default_queue(&self) -> Result<Arc<dyn Queue>, JobError>
pub fn set_default(&mut self, name: &str)
pub fn default_name(&self) -> &str
pub fn queue_names(&self) -> Vec<String>
Sourcepub fn route(&mut self, job: &str, queue: &str)
pub fn route(&mut self, job: &str, queue: &str)
Register a routing rule mapping a job name to a queue connection,
mirroring Laravel’s Queue::route(Job::class, connection: ...).
Trait Implementations§
Source§impl Clone for QueueManager
impl Clone for QueueManager
Auto Trait Implementations§
impl !RefUnwindSafe for QueueManager
impl !UnwindSafe for QueueManager
impl Freeze for QueueManager
impl Send for QueueManager
impl Sync for QueueManager
impl Unpin for QueueManager
impl UnsafeUnpin for QueueManager
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Event for T
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more