pub enum WorkerMessage {
DecodeFrame(FrameBuffer),
Flush,
Reset,
SetContext {
from_peer: String,
to_peer: String,
},
}Expand description
Messages that can be sent to the web worker
Variants§
DecodeFrame(FrameBuffer)
Decode a frame
Flush
Flush the decoder buffer and reset state
Reset
Reset decoder to initial state (waiting for keyframe)
SetContext
Set diagnostic context so worker can tag events with original IDs
Trait Implementations§
Source§impl Clone for WorkerMessage
impl Clone for WorkerMessage
Source§fn clone(&self) -> WorkerMessage
fn clone(&self) -> WorkerMessage
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 moreSource§impl Debug for WorkerMessage
impl Debug for WorkerMessage
Source§impl<'de> Deserialize<'de> for WorkerMessage
impl<'de> Deserialize<'de> for WorkerMessage
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 WorkerMessage
impl RefUnwindSafe for WorkerMessage
impl Send for WorkerMessage
impl Sync for WorkerMessage
impl Unpin for WorkerMessage
impl UnsafeUnpin for WorkerMessage
impl UnwindSafe for WorkerMessage
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