#[non_exhaustive]pub enum StoreOperation {
Add,
Remove,
Replace,
AddSilent,
RemoveSilent,
ReplaceSilent,
}Expand description
How flags should be modified in a STORE command (RFC 3501 Section 6.4.6 / RFC 9051 Section 6.4.6).
RFC 3501 Section 6.4.6 defines:
store-att-flags = (["+" / "-"] "FLAGS" [".SILENT"]) SP (flag-list / NIL)
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Add
+FLAGS — add flags.
Remove
-FLAGS — remove flags.
Replace
FLAGS — replace all flags.
AddSilent
+FLAGS.SILENT — add flags, suppress implicit FETCH response
(RFC 3501 Section 6.4.6).
RemoveSilent
-FLAGS.SILENT — remove flags, suppress implicit FETCH response
(RFC 3501 Section 6.4.6).
ReplaceSilent
FLAGS.SILENT — replace all flags, suppress implicit FETCH response
(RFC 3501 Section 6.4.6).
Trait Implementations§
Source§impl Clone for StoreOperation
impl Clone for StoreOperation
Source§fn clone(&self) -> StoreOperation
fn clone(&self) -> StoreOperation
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 StoreOperation
impl Debug for StoreOperation
Source§impl Hash for StoreOperation
impl Hash for StoreOperation
Source§impl PartialEq for StoreOperation
impl PartialEq for StoreOperation
impl Copy for StoreOperation
impl Eq for StoreOperation
impl StructuralPartialEq for StoreOperation
Auto Trait Implementations§
impl Freeze for StoreOperation
impl RefUnwindSafe for StoreOperation
impl Send for StoreOperation
impl Sync for StoreOperation
impl Unpin for StoreOperation
impl UnsafeUnpin for StoreOperation
impl UnwindSafe for StoreOperation
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