pub enum StreamDataType {
Binary,
Text,
Json,
Image {
format: String,
},
Audio {
format: String,
sample_rate: u32,
channels: u16,
},
Video {
codec: String,
width: u32,
height: u32,
fps: u32,
},
Sensor {
sensor_type: String,
},
Custom {
mime_type: String,
},
}Expand description
Stream data type.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for StreamDataType
impl Clone for StreamDataType
Source§fn clone(&self) -> StreamDataType
fn clone(&self) -> StreamDataType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StreamDataType
impl Debug for StreamDataType
Source§impl<'de> Deserialize<'de> for StreamDataType
impl<'de> Deserialize<'de> for StreamDataType
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
Source§impl Hash for StreamDataType
impl Hash for StreamDataType
Source§impl PartialEq for StreamDataType
impl PartialEq for StreamDataType
Source§fn eq(&self, other: &StreamDataType) -> bool
fn eq(&self, other: &StreamDataType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StreamDataType
impl Serialize for StreamDataType
impl Eq for StreamDataType
impl StructuralPartialEq for StreamDataType
Auto Trait Implementations§
impl Freeze for StreamDataType
impl RefUnwindSafe for StreamDataType
impl Send for StreamDataType
impl Sync for StreamDataType
impl Unpin for StreamDataType
impl UnsafeUnpin for StreamDataType
impl UnwindSafe for StreamDataType
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