Struct mediasoup_sys::fbs::consumer::ConsumerLayers
source · pub struct ConsumerLayers {
pub spatial_layer: u8,
pub temporal_layer: Option<u8>,
}
Expand description
The table ConsumerLayers
in the namespace FBS.Consumer
Generated from these locations:
- Table
ConsumerLayers
in the filefbs/consumer.fbs:8
Fields§
§spatial_layer: u8
The field spatial_layer
in the table ConsumerLayers
temporal_layer: Option<u8>
The field temporal_layer
in the table ConsumerLayers
Implementations§
source§impl ConsumerLayers
impl ConsumerLayers
sourcepub fn builder() -> ConsumerLayersBuilder<()>
pub fn builder() -> ConsumerLayersBuilder<()>
Creates a ConsumerLayersBuilder for serializing an instance of this table.
pub fn create( builder: &mut Builder, field_spatial_layer: impl WriteAsDefault<u8, u8>, field_temporal_layer: impl WriteAsOptional<u8> ) -> Offset<Self>
Trait Implementations§
source§impl Clone for ConsumerLayers
impl Clone for ConsumerLayers
source§fn clone(&self) -> ConsumerLayers
fn clone(&self) -> ConsumerLayers
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 ConsumerLayers
impl Debug for ConsumerLayers
source§impl Default for ConsumerLayers
impl Default for ConsumerLayers
source§impl<'de> Deserialize<'de> for ConsumerLayers
impl<'de> Deserialize<'de> for ConsumerLayers
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 ConsumerLayers
impl Hash for ConsumerLayers
source§impl Ord for ConsumerLayers
impl Ord for ConsumerLayers
source§fn cmp(&self, other: &ConsumerLayers) -> Ordering
fn cmp(&self, other: &ConsumerLayers) -> 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 ConsumerLayers
impl PartialEq for ConsumerLayers
source§fn eq(&self, other: &ConsumerLayers) -> bool
fn eq(&self, other: &ConsumerLayers) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ConsumerLayers
impl PartialOrd for ConsumerLayers
source§fn partial_cmp(&self, other: &ConsumerLayers) -> Option<Ordering>
fn partial_cmp(&self, other: &ConsumerLayers) -> 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 ConsumerLayers
impl Serialize for ConsumerLayers
source§impl<'a> TryFrom<ConsumerLayersRef<'a>> for ConsumerLayers
impl<'a> TryFrom<ConsumerLayersRef<'a>> for ConsumerLayers
impl Eq for ConsumerLayers
impl StructuralPartialEq for ConsumerLayers
impl VectorWrite<Offset<ConsumerLayers>> for ConsumerLayers
impl WriteAs<Offset<ConsumerLayers>> for ConsumerLayers
impl WriteAsOffset<ConsumerLayers> for ConsumerLayers
impl<T0: WriteAsDefault<u8, u8>, T1: WriteAsOptional<u8>> WriteAsOffset<ConsumerLayers> for ConsumerLayersBuilder<(T0, T1)>
impl WriteAsOptional<Offset<ConsumerLayers>> for ConsumerLayers
Auto Trait Implementations§
impl RefUnwindSafe for ConsumerLayers
impl Send for ConsumerLayers
impl Sync for ConsumerLayers
impl Unpin for ConsumerLayers
impl UnwindSafe for ConsumerLayers
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