pub enum CommandStatus {
Pending,
Accepted,
Rejected(RejectionReason),
ShuttingDown,
}Expand description
CommandStatus defines the status of each command.
Pending: the initial status of the command, before a command is acted upon.
Accepted: the command is successfully completed.
Rejected: the command is rejected. RejectionReason is now available with the Rejected status (v0.0.3)
Putmay be rejected for various reasons. One reason is: the weight of the the incoming key/value pair is more than the total cache weight.Deletewill be rejected if the key to be deleted is not preset in the cache.
ShuttingDown: all the commands that could sneak in while the cache is being shutdown will be returned with ShuttingDown status.
Variants§
Trait Implementations§
Source§impl Clone for CommandStatus
impl Clone for CommandStatus
Source§fn clone(&self) -> CommandStatus
fn clone(&self) -> CommandStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommandStatus
impl Debug for CommandStatus
Source§impl PartialEq for CommandStatus
impl PartialEq for CommandStatus
impl Copy for CommandStatus
impl Eq for CommandStatus
impl StructuralPartialEq for CommandStatus
Auto Trait Implementations§
impl Freeze for CommandStatus
impl RefUnwindSafe for CommandStatus
impl Send for CommandStatus
impl Sync for CommandStatus
impl Unpin for CommandStatus
impl UnwindSafe for CommandStatus
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