Struct apalis::PushJob [−][src]
pub struct PushJob { pub id: Uuid, pub job: Vec<u8, Global>, pub retries: i64, // some fields omitted }
Fields
id: Uuid
job: Vec<u8, Global>
retries: i64
Implementations
Trait Implementations
impl<'de> Deserialize<'de> for PushJob
[src]
impl<'de> Deserialize<'de> for PushJob
[src]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<PushJob, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<PushJob, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl<J> Handler<PushJob> for RedisProducer<J> where
J: 'static + Job,
[src]
impl<J> Handler<PushJob> for RedisProducer<J> where
J: 'static + Job,
[src]Implementation of Actix Handler to push job.
type Result = Pin<Box<dyn Future<Output = Result<JobState, Error>> + 'static, Global>>
type Result = Pin<Box<dyn Future<Output = Result<JobState, Error>> + 'static, Global>>
The type of value that this handler will return. Read more
pub fn handle(
&mut self,
msg: PushJob,
&mut <RedisProducer<J> as Actor>::Context
) -> <RedisProducer<J> as Handler<PushJob>>::Result
[src]
pub fn handle(
&mut self,
msg: PushJob,
&mut <RedisProducer<J> as Actor>::Context
) -> <RedisProducer<J> as Handler<PushJob>>::Result
[src]This method is called for every message received by this actor.
impl Serialize for PushJob
[src]
impl Serialize for PushJob
[src]pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for PushJob
impl Send for PushJob
impl Sync for PushJob
impl Unpin for PushJob
impl UnwindSafe for PushJob
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> MessageDecodable for T where
T: DeserializeOwned,
[src]
impl<T> MessageDecodable for T where
T: DeserializeOwned,
[src]impl<T> MessageEncodable for T where
T: Serialize,
[src]
impl<T> MessageEncodable for T where
T: Serialize,
[src]impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,