pub enum ExpiryResponse {
Set(Result<()>),
Persist(Result<()>),
Get(Result<Option<Duration>>),
Extend(Result<()>),
}Expand description
Actix message reply for Expiry requests
Every store methods are mirrored to an enum variant of the same name, and should
be a result for its corresponding variant in ExpiryRequest
Returning anything beside the requested variant, will result in panic at runtime.
Variants§
Trait Implementations§
Source§impl<A: Actor> MessageResponse<A, ExpiryRequest> for ExpiryResponse
impl<A: Actor> MessageResponse<A, ExpiryRequest> for ExpiryResponse
fn handle( self, _ctx: &mut <A as Actor>::Context, tx: Option<OneshotSender<<ExpiryRequest as Message>::Result>>, )
Auto Trait Implementations§
impl Freeze for ExpiryResponse
impl !RefUnwindSafe for ExpiryResponse
impl Send for ExpiryResponse
impl !Sync for ExpiryResponse
impl Unpin for ExpiryResponse
impl !UnwindSafe for ExpiryResponse
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