[−][src]Struct sync15::clients::record::CommandRecord
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][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> CallHasher for T where
T: Hash,
[+]
T: Hash,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[+]
V: MultiLane<T>,