[][src]Struct sync15::clients::record::CommandRecord

pub struct CommandRecord {
    pub name: String,
    pub args: Vec<String>,
    pub flow_id: Option<String>,
}

The serialized form of a client command.

Fields

name: String

The command name. This is a string, not an enum, because we want to round-trip commands that we don't support yet.

args: Vec<String>

Extra, command-specific arguments. Note that we must send an empty array if the command expects no arguments.

flow_id: Option<String>

Some commands, like repair, send a "flow ID" that other cliennts can record in their telemetry. We don't currently send commands with flow IDs, but we round-trip them.

Implementations

impl CommandRecord[src]

pub fn as_command(&self) -> Option<Command>[src]

Converts a serialized command into one that we can apply. Returns None if we don't support the command.

Trait Implementations

impl Clone for CommandRecord[src]

impl Debug for CommandRecord[src]

impl<'de> Deserialize<'de> for CommandRecord[src]

impl Eq for CommandRecord[src]

impl From<Command> for CommandRecord[src]

impl Hash for CommandRecord[src]

impl PartialEq<CommandRecord> for CommandRecord[src]

impl Serialize for CommandRecord[src]

impl StructuralEq for CommandRecord[src]

impl StructuralPartialEq for CommandRecord[src]

Auto Trait Implementations

impl RefUnwindSafe for CommandRecord

impl Send for CommandRecord

impl Sync for CommandRecord

impl Unpin for CommandRecord

impl UnwindSafe for CommandRecord

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,