pub struct RedisAck<Conn = ConnectionManager, Encode = JsonCodec<Vec<u8>>> { /* private fields */ }Expand description
A Redis acknowledgment Layer
Implementations§
Trait Implementations§
Source§impl<Conn: ConnectionLike + Send + Clone + 'static, Res, Encode> Acknowledge<Res, RedisContext, Ulid> for RedisAck<Conn, Encode>
impl<Conn: ConnectionLike + Send + Clone + 'static, Res, Encode> Acknowledge<Res, RedisContext, Ulid> for RedisAck<Conn, Encode>
Source§type Future = Pin<Box<dyn Future<Output = Result<(), RedisError>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<(), RedisError>> + Send>>
The future returned by the
ack methodSource§type Error = RedisError
type Error = RedisError
The error type returned by the acknowledgment process
Source§fn ack(
&mut self,
res: &Result<Res, BoxDynError>,
parts: &Parts<RedisContext, Ulid>,
) -> Self::Future
fn ack( &mut self, res: &Result<Res, BoxDynError>, parts: &Parts<RedisContext, Ulid>, ) -> Self::Future
Acknowledge the result of a task processing
Auto Trait Implementations§
impl<Conn, Encode> Freeze for RedisAck<Conn, Encode>where
Conn: Freeze,
impl<Conn, Encode> RefUnwindSafe for RedisAck<Conn, Encode>where
Conn: RefUnwindSafe,
Encode: RefUnwindSafe,
impl<Conn, Encode> Send for RedisAck<Conn, Encode>
impl<Conn, Encode> Sync for RedisAck<Conn, Encode>
impl<Conn, Encode> Unpin for RedisAck<Conn, Encode>
impl<Conn, Encode> UnwindSafe for RedisAck<Conn, Encode>where
Conn: UnwindSafe,
Encode: UnwindSafe,
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