pub enum ExpiryRequest {
Set(Arc<[u8]>, Arc<[u8]>, Duration),
Persist(Arc<[u8]>, Arc<[u8]>),
Get(Arc<[u8]>, Arc<[u8]>),
Extend(Arc<[u8]>, Arc<[u8]>, Duration),
}Expand description
Actix message for Expiry requests
Every store methods are mirrored to an enum variant of the same name, and should
result in its corresponding variant in ExpiryResponse.
Expiry is automatically implemented for actors handling
this message.
Variants§
Set(Arc<[u8]>, Arc<[u8]>, Duration)
Persist(Arc<[u8]>, Arc<[u8]>)
Get(Arc<[u8]>, Arc<[u8]>)
Extend(Arc<[u8]>, Arc<[u8]>, Duration)
Trait Implementations§
Source§impl Debug for ExpiryRequest
impl Debug for ExpiryRequest
Source§impl Message for ExpiryRequest
impl Message for ExpiryRequest
Source§type Result = ExpiryResponse
type Result = ExpiryResponse
The type of value that this message will resolved with if it is
successful.
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 ExpiryRequest
impl RefUnwindSafe for ExpiryRequest
impl Send for ExpiryRequest
impl Sync for ExpiryRequest
impl Unpin for ExpiryRequest
impl UnwindSafe for ExpiryRequest
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