pub enum TvFrame {
Device {
name: String,
platform: Platform,
client_name: String,
},
Done {
results: Vec<OfferResult>,
},
Refused {
reason: Refusal,
},
Unknown,
}Expand description
What the TV sends.
Variants§
Device
What the TV is: “Sign in Living Room TV?”. The phone makes its offers for this.
Done
How each offer went, in the order of the offers.
Fields
§
results: Vec<OfferResult>Refused
The exchange is over, refused for reason.
Unknown
A frame this build does not know.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TvFrame
impl<'de> Deserialize<'de> for TvFrame
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 TvFrame
impl StructuralPartialEq for TvFrame
Auto Trait Implementations§
impl Forget for TvFrame
impl Freeze for TvFrame
impl Move for TvFrame
impl RefUnwindSafe for TvFrame
impl Send for TvFrame
impl Sync for TvFrame
impl Unpin for TvFrame
impl UnsafeUnpin for TvFrame
impl UnwindSafe for TvFrame
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