[−][src]Struct actix_redis_jobs::QueueActor
Actix Scheduler queue actor.
Methods
impl QueueActor
[src]
pub async fn new(redis_url: &'static str, queue: Queue) -> Self
[src]
Create new Redis queue actor instance.
Trait Implementations
impl Actor for QueueActor
[src]
Implementation actix Actor trait for Redis queue.
type Context = Context<Self>
Actor execution context type
fn started(&mut self, _: &mut Self::Context)
[src]
fn stopping(&mut self, ctx: &mut Self::Context) -> Running
[src]
fn stopped(&mut self, ctx: &mut Self::Context)
[src]
fn start(self) -> Addr<Self> where
Self: Actor<Context = Context<Self>>,
[src]
Self: Actor<Context = Context<Self>>,
fn start_default() -> Addr<Self> where
Self: Actor<Context = Context<Self>> + Default,
[src]
Self: Actor<Context = Context<Self>> + Default,
fn start_in_arbiter<F>(arb: &Arbiter, f: F) -> Addr<Self> where
F: FnOnce(&mut Context<Self>) -> Self + Send + 'static,
Self: Actor<Context = Context<Self>>,
[src]
F: FnOnce(&mut Context<Self>) -> Self + Send + 'static,
Self: Actor<Context = Context<Self>>,
fn create<F>(f: F) -> Addr<Self> where
F: FnOnce(&mut Context<Self>) -> Self,
Self: Actor<Context = Context<Self>>,
[src]
F: FnOnce(&mut Context<Self>) -> Self,
Self: Actor<Context = Context<Self>>,
impl Handler<AckJob> for QueueActor
[src]
Implementation of Actix Handler for Get message.
type Result = ResponseFuture<Result<Option<bool>, Error>>
The type of value that this handler will return.
fn handle(&mut self, msg: AckJob, _: &mut Self::Context) -> Self::Result
[src]
impl Handler<EnqueueJobs> for QueueActor
[src]
Implementation of Actix Handler for enqueue scheduled jobs
type Result = ResponseFuture<Result<i8, Error>>
The type of value that this handler will return.
fn handle(&mut self, msg: EnqueueJobs, _: &mut Self::Context) -> Self::Result
[src]
impl Handler<FetchJobs> for QueueActor
[src]
Implementation of Actix Handler fetching jobs.
type Result = ResponseFuture<Result<Vec<Value>, Error>>
The type of value that this handler will return.
fn handle(&mut self, msg: FetchJobs, _: &mut Self::Context) -> Self::Result
[src]
impl Handler<KillJob> for QueueActor
[src]
Implementation of Actix Handler for killing jobs
type Result = ResponseFuture<Result<Option<i8>, Error>>
The type of value that this handler will return.
fn handle(&mut self, msg: KillJob, _: &mut Self::Context) -> Self::Result
[src]
impl Handler<PushJob> for QueueActor
[src]
Implementation of Actix Handler to push job.
type Result = ResponseFuture<Result<JobStatus, Error>>
The type of value that this handler will return.
fn handle(&mut self, msg: PushJob, _: &mut Self::Context) -> Self::Result
[src]
impl Handler<ReenqueueActive> for QueueActor
[src]
Implementation of Actix Handler for Reenqueueing active jobs
type Result = ResponseFuture<Result<Option<bool>, Error>>
The type of value that this handler will return.
fn handle(
&mut self,
msg: ReenqueueActive,
_: &mut Self::Context
) -> Self::Result
[src]
&mut self,
msg: ReenqueueActive,
_: &mut Self::Context
) -> Self::Result
impl Handler<ReenqueueOrphaned> for QueueActor
[src]
Implementation of Actix Handler for Reenqueueing active jobs
type Result = ResponseFuture<Result<Option<i8>, Error>>
The type of value that this handler will return.
fn handle(
&mut self,
msg: ReenqueueOrphaned,
_: &mut Self::Context
) -> Self::Result
[src]
&mut self,
msg: ReenqueueOrphaned,
_: &mut Self::Context
) -> Self::Result
impl Handler<RegisterConsumer> for QueueActor
[src]
Implementation of Actix Handler for killing jobs
type Result = ResponseFuture<Result<Option<bool>, Error>>
The type of value that this handler will return.
fn handle(
&mut self,
msg: RegisterConsumer,
_: &mut Self::Context
) -> Self::Result
[src]
&mut self,
msg: RegisterConsumer,
_: &mut Self::Context
) -> Self::Result
impl Handler<RetryJob> for QueueActor
[src]
Implementation of Actix Handler for retrying jobs
type Result = ResponseFuture<Result<Option<i8>, Error>>
The type of value that this handler will return.
fn handle(&mut self, msg: RetryJob, _: &mut Self::Context) -> Self::Result
[src]
impl Handler<ScheduleJob> for QueueActor
[src]
Implementation of Actix Handler for scheduling a message.
type Result = ResponseFuture<Result<JobStatus, Error>>
The type of value that this handler will return.
fn handle(&mut self, msg: ScheduleJob, _: &mut Self::Context) -> Self::Result
[src]
impl Supervised for QueueActor
[src]
fn restarting(&mut self, _: &mut Context<QueueActor>)
[src]
Auto Trait Implementations
impl !RefUnwindSafe for QueueActor
impl Send for QueueActor
impl Sync for QueueActor
impl Unpin for QueueActor
impl !UnwindSafe for QueueActor
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,