pub enum FromPilot {
Hello {
proto: u8,
session_id: String,
client: Value,
token: Option<String>,
},
Ping {
t1: u64,
},
Loss {
ch: u8,
frame_id: u16,
key: bool,
},
RequestKeyframe {
ch: u8,
},
SetQos {
profile: String,
},
PilotStats(Value),
Bye,
Unknown,
}Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FromPilot
impl<'de> Deserialize<'de> for FromPilot
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
Auto Trait Implementations§
impl Freeze for FromPilot
impl RefUnwindSafe for FromPilot
impl Send for FromPilot
impl Sync for FromPilot
impl Unpin for FromPilot
impl UnsafeUnpin for FromPilot
impl UnwindSafe for FromPilot
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