pub enum Msg {
Show 19 variants
Idn,
IdnReply {
encoded: String,
},
Describe,
Describing {
id: String,
structure: Value,
},
Activate {
module: String,
},
Active {
module: String,
},
Deactivate {
module: String,
},
Inactive {
module: String,
},
Do {
module: String,
command: String,
arg: Value,
},
Done {
module: String,
command: String,
data: Value,
},
Change {
module: String,
param: String,
value: Value,
},
Changed {
module: String,
param: String,
data: Value,
},
Read {
module: String,
param: String,
},
Ping {
token: String,
},
Pong {
token: String,
data: Value,
},
ErrMsg {
class: String,
report: Value,
},
Update {
module: String,
param: String,
data: Value,
},
InitUpdates {
module: String,
updates: Vec<Msg>,
},
Quit,
}Expand description
Enum that represents any message that can be sent over the network in the protocol, and some others that are only used internally.
Variants§
Idn
identify request
IdnReply
identify reply
Describe
description request
Describing
description reply
Activate
event enable request
Active
event enable reply
Deactivate
event disable request
Inactive
event disable reply
Do
command execution request
Done
command result
Change
change request
Changed
change result
Read
read request
Ping
heartbeat request
Pong
heartbeat reply
ErrMsg
error reply
Update
update event
InitUpdates
not a protocol message, but a collection of initial updates
Quit
not a protocol message, indicates the connection is done
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Msg
impl RefUnwindSafe for Msg
impl Send for Msg
impl Sync for Msg
impl Unpin for Msg
impl UnwindSafe for Msg
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more