Enum colibri::ColibriMessage

source ·
pub enum ColibriMessage {
Show 18 variants DominantSpeakerEndpointChangeEvent { dominant_speaker_endpoint: String, previous_speakers: Vec<String>, }, EndpointConnectivityStatusChangeEvent { endpoint: String, active: bool, }, EndpointMessage { from: Option<String>, to: Option<String>, msg_payload: Value, }, EndpointStats { from: Option<String>, bitrate: Bitrates, packet_loss: PacketLoss, connection_quality: f32, jvb_rtt: Option<i32>, server_region: Option<String>, max_enabled_resolution: Option<i32>, }, ForwardedSources { forwarded_sources: Vec<String>, }, LastNChangedEvent { last_n: i32, }, LastNEndpointsChangeEvent { last_n_endpoints: Vec<String>, }, PinnedEndpointChangedEvent { pinned_endpoint: Option<String>, }, ReceiverVideoConstraint { max_frame_height: i32, }, ReceiverVideoConstraints { last_n: Option<i32>, selected_endpoints: Option<Vec<String>>, selected_sources: Option<Vec<String>>, on_stage_endpoints: Option<Vec<String>>, on_stage_sources: Option<Vec<String>>, default_constraints: Option<Constraints>, constraints: Option<HashMap<String, Constraints>>, }, SelectedEndpointsChangedEvent { selected_endpoints: Vec<String>, }, SenderVideoConstraints { video_constraints: Constraints, }, ServerHello { version: Option<String>, }, VideoTypeMessage { video_type: VideoType, }, SourceVideoTypeMessage { source_name: String, video_type: VideoType, }, SenderSourceConstraints { source_name: String, max_height: i32, }, VideoSourcesMap { mapped_sources: Vec<VideoSourceMapping>, }, AudioSourcesMap { mapped_sources: Vec<AudioSourceMapping>, },
}

Variants§

§

DominantSpeakerEndpointChangeEvent

Fields

§dominant_speaker_endpoint: String
§previous_speakers: Vec<String>
§

EndpointConnectivityStatusChangeEvent

Fields

§endpoint: String
§active: bool
§

EndpointMessage

Fields

§msg_payload: Value
§

EndpointStats

Fields

§bitrate: Bitrates
§packet_loss: PacketLoss
§connection_quality: f32
§jvb_rtt: Option<i32>
§server_region: Option<String>
§max_enabled_resolution: Option<i32>
§

ForwardedSources

Fields

§forwarded_sources: Vec<String>
§

LastNChangedEvent

Fields

§last_n: i32
§

LastNEndpointsChangeEvent

Fields

§last_n_endpoints: Vec<String>
§

PinnedEndpointChangedEvent

Fields

§pinned_endpoint: Option<String>
§

ReceiverVideoConstraint

Fields

§max_frame_height: i32
§

ReceiverVideoConstraints

Fields

§last_n: Option<i32>
§selected_endpoints: Option<Vec<String>>
§selected_sources: Option<Vec<String>>
§on_stage_endpoints: Option<Vec<String>>
§on_stage_sources: Option<Vec<String>>
§default_constraints: Option<Constraints>
§

SelectedEndpointsChangedEvent

Fields

§selected_endpoints: Vec<String>
§

SenderVideoConstraints

Fields

§video_constraints: Constraints
§

ServerHello

Fields

§version: Option<String>
§

VideoTypeMessage

Fields

§video_type: VideoType
§

SourceVideoTypeMessage

Fields

§source_name: String
§video_type: VideoType
§

SenderSourceConstraints

Fields

§source_name: String
§max_height: i32
§

VideoSourcesMap

Fields

§mapped_sources: Vec<VideoSourceMapping>
§

AudioSourcesMap

Fields

§mapped_sources: Vec<AudioSourceMapping>

Trait Implementations§

source§

impl Clone for ColibriMessage

source§

fn clone(&self) -> ColibriMessage

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ColibriMessage

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for ColibriMessage

source§

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 PartialEq for ColibriMessage

source§

fn eq(&self, other: &ColibriMessage) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for ColibriMessage

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for ColibriMessage

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,