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