#[non_exhaustive]pub enum QueueDriver {
Database,
Memory,
Redis,
Registered(DriverName),
}Expand description
Where queued jobs are stored.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Database
The jobs and failed_jobs tables of the app database
("database", the default): jobs survive restarts and are shared by
every process using the database. Needs DatabaseModule.
Memory
In-process memory ("memory"): jobs are lost when the process
exits. For tests and single-process development.
Redis
Redis ("redis"): the dyn QueueStore provider named redis,
which navree-redis’s RedisModule registers; every process using
the same Redis server shares the jobs. Needs RedisModule.
Registered(DriverName)
A store a module registers under this name with
m.queue_store
("amritsar_queue"); its settings are queue.{name}. Holding a
built-in name, it is that built-in driver.
Implementations§
Trait Implementations§
Source§impl Clone for QueueDriver
impl Clone for QueueDriver
impl Copy for QueueDriver
Source§impl Debug for QueueDriver
impl Debug for QueueDriver
Source§impl Default for QueueDriver
impl Default for QueueDriver
Source§impl<'de> Deserialize<'de> for QueueDriver
database, memory and redis are the built-in drivers, also when
written as a table whose only key is the name ({ memory = {} }); any
other lower-case name (a letter, then letters, digits or _) is a store a
module registers, which the boot resolves. Anything else, a table of any
other key included, is an error that lists the names and never repeats
the value.
impl<'de> Deserialize<'de> for QueueDriver
database, memory and redis are the built-in drivers, also when
written as a table whose only key is the name ({ memory = {} }); any
other lower-case name (a letter, then letters, digits or _) is a store a
module registers, which the boot resolves. Anything else, a table of any
other key included, is an error that lists the names and never repeats
the value.
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
impl Eq for QueueDriver
Source§impl Hash for QueueDriver
impl Hash for QueueDriver
Source§impl PartialEq for QueueDriver
impl PartialEq for QueueDriver
Source§impl Serialize for QueueDriver
The configuration name, as as_str gives it.
impl Serialize for QueueDriver
The configuration name, as as_str gives it.
impl StructuralPartialEq for QueueDriver
Auto Trait Implementations§
impl Forget for QueueDriver
impl Freeze for QueueDriver
impl Move for QueueDriver
impl RefUnwindSafe for QueueDriver
impl Send for QueueDriver
impl Sync for QueueDriver
impl Unpin for QueueDriver
impl UnsafeUnpin for QueueDriver
impl UnwindSafe for QueueDriver
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> ⓘ
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> ⓘ
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