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