pub enum Control {
Hello {
call_id: String,
},
Mute {
on: bool,
},
Bye,
Video {
camera: bool,
screen: bool,
audio: bool,
},
KeyframeRequest {
kind: VideoKind,
},
VideoPause {
on: bool,
},
VideoUnsupported {
codec: VideoCodec,
},
Unknown,
}Expand description
Control messages, length-prefixed JSON on the bidirectional stream.
Variants§
Hello
First message from the caller: which call this connection carries.
Mute
Bye
Video
What I am sending on the video streams from now on: either, both or neither, and whether the screen comes with its sound.
KeyframeRequest
My decoder lost that chain: its next frame must be a keyframe.
VideoPause
My view of your video is hidden; stop spending upload on it (or resume).
VideoUnsupported
My decoder cannot take this codec after all; send with another.
Fields
§
codec: VideoCodecUnknown
A message from a newer peer: skipped, never fatal.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Control
impl<'de> Deserialize<'de> for Control
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 StructuralPartialEq for Control
Auto Trait Implementations§
impl Freeze for Control
impl RefUnwindSafe for Control
impl Send for Control
impl Sync for Control
impl Unpin for Control
impl UnsafeUnpin for Control
impl UnwindSafe for Control
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