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