#[non_exhaustive]pub enum CommandStatus {
Accepted,
Unknown(String),
}Expand description
The ack status: accepted for every admitted command. session/compact
is the one method that may additionally answer noop
(crate::msp::method::runtime::CompactStatus); no other command uses
another status.
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 command was admitted.
Unknown(String)
A value from a newer host, kept verbatim so an older client decodes the rest of the message. Excluded from the generated schema while the enum stays declared open; never construct it with a known word.
Implementations§
Trait Implementations§
Source§impl Clone for CommandStatus
impl Clone for CommandStatus
Source§impl Debug for CommandStatus
impl Debug for CommandStatus
Source§impl<'de> Deserialize<'de> for CommandStatus
impl<'de> Deserialize<'de> for CommandStatus
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 CommandStatus
Source§impl PartialEq for CommandStatus
impl PartialEq for CommandStatus
Source§impl Serialize for CommandStatus
impl Serialize for CommandStatus
impl StructuralPartialEq for CommandStatus
Auto Trait Implementations§
impl Forget for CommandStatus
impl Freeze for CommandStatus
impl Move for CommandStatus
impl RefUnwindSafe for CommandStatus
impl Send for CommandStatus
impl Sync for CommandStatus
impl Unpin for CommandStatus
impl UnsafeUnpin 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