pub enum CommandAckStatus {
Accepted,
Noop,
}Expand description
The ack-status vocabulary: "accepted" for every admitted command;
session/compact alone may answer "noop". Closed: the protocol spec names
exactly these two values, so SDK clients get a discriminated type and
validation catches a wrong status — and a client that received a third value
would have been told nothing it can act on, unlike [TurnStartDisposition],
where “acked, not otherwise classified” is a usable reading.
Variants§
Accepted
The command was admitted and durably recorded.
Noop
session/compact’s nothing-to-do SUCCESS arm — the one non-accepted
value in v1.
Implementations§
Trait Implementations§
Source§impl Clone for CommandAckStatus
impl Clone for CommandAckStatus
impl Copy for CommandAckStatus
Source§impl Debug for CommandAckStatus
impl Debug for CommandAckStatus
Source§impl<'de> Deserialize<'de> for CommandAckStatus
impl<'de> Deserialize<'de> for CommandAckStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CommandAckStatus
Source§impl PartialEq for CommandAckStatus
impl PartialEq for CommandAckStatus
Source§impl Serialize for CommandAckStatus
impl Serialize for CommandAckStatus
impl StructuralPartialEq for CommandAckStatus
Auto Trait Implementations§
impl Freeze for CommandAckStatus
impl RefUnwindSafe for CommandAckStatus
impl Send for CommandAckStatus
impl Sync for CommandAckStatus
impl Unpin for CommandAckStatus
impl UnsafeUnpin for CommandAckStatus
impl UnwindSafe for CommandAckStatus
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