#[non_exhaustive]pub enum CompactStatus {
Accepted,
Noop,
Unknown(String),
}Expand description
session/compact’s ack status: the one method that may answer noop in
addition to the accepted. A noop is a success, not an error, and it is
durably settled like any other outcome.
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.
Accepted
The compaction was admitted.
Noop
The command was accepted but there was nothing to compact.
Unknown(String)
A value from a newer host, kept verbatim so an older client decodes the rest of the message. Never construct it with a known word.
Implementations§
Trait Implementations§
Source§impl Clone for CompactStatus
impl Clone for CompactStatus
Source§impl Debug for CompactStatus
impl Debug for CompactStatus
Source§impl<'de> Deserialize<'de> for CompactStatus
impl<'de> Deserialize<'de> for CompactStatus
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CompactStatus
Source§impl PartialEq for CompactStatus
impl PartialEq for CompactStatus
Source§impl Serialize for CompactStatus
impl Serialize for CompactStatus
impl StructuralPartialEq for CompactStatus
Auto Trait Implementations§
impl Freeze for CompactStatus
impl RefUnwindSafe for CompactStatus
impl Send for CompactStatus
impl Sync for CompactStatus
impl Unpin for CompactStatus
impl UnsafeUnpin for CompactStatus
impl UnwindSafe for CompactStatus
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