Enum ControlFrame
pub enum ControlFrame {
Show 13 variants
Register {
v: u32,
device: String,
platform: String,
token: String,
},
Cast {
v: u32,
device: String,
cmd: InjectionCommand,
token: String,
},
EventCast {
v: u32,
device: String,
event: SemanticEvent,
token: String,
},
EventResult {
v: u32,
device: String,
delivered: usize,
},
SubscribeEvents {
v: u32,
token: String,
},
EventsSubscribed {
v: u32,
},
Subscribe {
v: u32,
token: String,
},
Ping {
v: u32,
},
Pong {
v: u32,
},
Error {
v: u32,
reason: String,
},
Result {
v: u32,
device: String,
delivered: usize,
},
List {
v: u32,
token: String,
},
Devices {
v: u32,
devices: Vec<String>,
},
}Variants§
Register
Cast
EventCast
EventResult
SubscribeEvents
EventsSubscribed
Subscribe
Ping
Pong
Error
Result
List
Devices
Implementations§
Trait Implementations§
§impl Clone for ControlFrame
impl Clone for ControlFrame
§fn clone(&self) -> ControlFrame
fn clone(&self) -> ControlFrame
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ControlFrame
impl Debug for ControlFrame
§impl<'de> Deserialize<'de> for ControlFrame
impl<'de> Deserialize<'de> for ControlFrame
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ControlFrame, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ControlFrame, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq for ControlFrame
impl PartialEq for ControlFrame
§impl Serialize for ControlFrame
impl Serialize for ControlFrame
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for ControlFrame
impl StructuralPartialEq for ControlFrame
Auto Trait Implementations§
impl Freeze for ControlFrame
impl RefUnwindSafe for ControlFrame
impl Send for ControlFrame
impl Sync for ControlFrame
impl Unpin for ControlFrame
impl UnsafeUnpin for ControlFrame
impl UnwindSafe for ControlFrame
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.