pub enum PhoneFrame {
Hello {
code: PairingCode,
name: Option<String>,
},
Offers {
offers: Vec<Offer>,
},
Declined,
Unknown,
}Expand description
What the phone sends.
Variants§
Hello
The code from the QR code, and what the phone calls itself
(“Andrey’s iPhone”, its device name, cut to
crate::pairing::MAX_NAME characters) for the TV to show. First,
and only once. name is left out by a phone before it was added.
Offers
The sign-ins the phone made for the TV, one per server the person picked.
Declined
The person on the phone said no.
Unknown
A frame this build does not know.
Trait Implementations§
Source§impl Clone for PhoneFrame
impl Clone for PhoneFrame
Source§impl Debug for PhoneFrame
impl Debug for PhoneFrame
Source§impl<'de> Deserialize<'de> for PhoneFrame
impl<'de> Deserialize<'de> for PhoneFrame
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
impl Eq for PhoneFrame
Source§impl PartialEq for PhoneFrame
impl PartialEq for PhoneFrame
Source§impl Serialize for PhoneFrame
impl Serialize for PhoneFrame
impl StructuralPartialEq for PhoneFrame
Auto Trait Implementations§
impl Forget for PhoneFrame
impl Freeze for PhoneFrame
impl Move for PhoneFrame
impl RefUnwindSafe for PhoneFrame
impl Send for PhoneFrame
impl Sync for PhoneFrame
impl Unpin for PhoneFrame
impl UnsafeUnpin for PhoneFrame
impl UnwindSafe for PhoneFrame
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