Enum mediasoup::producer::ProducerType
source · pub enum ProducerType {
Simple,
Simulcast,
Svc,
}
Expand description
Producer type.
Variants§
Simple
A single RTP stream is received with no spatial/temporal layers.
Simulcast
Two or more RTP streams are received, each of them with one or more temporal layers.
Svc
A single RTP stream is received with spatial/temporal layers.
Trait Implementations§
source§impl Clone for ProducerType
impl Clone for ProducerType
source§fn clone(&self) -> ProducerType
fn clone(&self) -> ProducerType
Returns a copy 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 ProducerType
impl Debug for ProducerType
source§impl<'de> Deserialize<'de> for ProducerType
impl<'de> Deserialize<'de> for ProducerType
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 From<ProducerType> for ConsumerType
impl From<ProducerType> for ConsumerType
source§fn from(producer_type: ProducerType) -> Self
fn from(producer_type: ProducerType) -> Self
Converts to this type from the input type.
source§impl Hash for ProducerType
impl Hash for ProducerType
source§impl Ord for ProducerType
impl Ord for ProducerType
source§fn cmp(&self, other: &ProducerType) -> Ordering
fn cmp(&self, other: &ProducerType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ProducerType
impl PartialEq for ProducerType
source§fn eq(&self, other: &ProducerType) -> bool
fn eq(&self, other: &ProducerType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ProducerType
impl PartialOrd for ProducerType
source§fn partial_cmp(&self, other: &ProducerType) -> Option<Ordering>
fn partial_cmp(&self, other: &ProducerType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for ProducerType
impl Serialize for ProducerType
impl Copy for ProducerType
impl Eq for ProducerType
impl StructuralPartialEq for ProducerType
Auto Trait Implementations§
impl RefUnwindSafe for ProducerType
impl Send for ProducerType
impl Sync for ProducerType
impl Unpin for ProducerType
impl UnwindSafe for ProducerType
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more