#[non_exhaustive]pub enum RunningElsewhereOrigin {
Tui,
Exec,
Serve,
Unknown(String),
}Expand description
Which kind of process runs a session elsewhere on this machine.
Open: a new origin is additive evolution, and a client MUST treat an unknown value as an unknown-but-present origin rather than rejecting the row.
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.
Tui
A TUI runs it.
Exec
muse exec runs it.
Serve
Another muse serve host runs it.
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 RunningElsewhereOrigin
impl Clone for RunningElsewhereOrigin
Source§impl Debug for RunningElsewhereOrigin
impl Debug for RunningElsewhereOrigin
Source§impl<'de> Deserialize<'de> for RunningElsewhereOrigin
impl<'de> Deserialize<'de> for RunningElsewhereOrigin
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 RunningElsewhereOrigin
Source§impl PartialEq for RunningElsewhereOrigin
impl PartialEq for RunningElsewhereOrigin
Source§impl Serialize for RunningElsewhereOrigin
impl Serialize for RunningElsewhereOrigin
impl StructuralPartialEq for RunningElsewhereOrigin
Auto Trait Implementations§
impl Forget for RunningElsewhereOrigin
impl Freeze for RunningElsewhereOrigin
impl Move for RunningElsewhereOrigin
impl RefUnwindSafe for RunningElsewhereOrigin
impl Send for RunningElsewhereOrigin
impl Sync for RunningElsewhereOrigin
impl Unpin for RunningElsewhereOrigin
impl UnsafeUnpin for RunningElsewhereOrigin
impl UnwindSafe for RunningElsewhereOrigin
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