Struct RTCInboundRtpStreamStats

Source
pub struct RTCInboundRtpStreamStats(/* private fields */);

Implementations§

Source§

impl RTCInboundRtpStreamStats

Source

pub fn get_packets_received(&self) -> JsNullable<JsNumber>

Source

pub fn set_packets_received(&self, value: &dyn ToJs<JsNullable<JsNumber>>)

Source

pub fn get_packets_lost(&self) -> JsNullable<JsNumber>

Source

pub fn set_packets_lost(&self, value: &dyn ToJs<JsNullable<JsNumber>>)

Source

pub fn get_jitter(&self) -> JsNullable<JsNumber>

Source

pub fn set_jitter(&self, value: &dyn ToJs<JsNullable<JsNumber>>)

Source

pub fn get_track_identifier(&self) -> JsString

Source

pub fn set_track_identifier(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_total_squared_inter_frame_delay(&self) -> JsNullable<JsNumber>

Source

pub fn set_total_squared_inter_frame_delay( &self, value: &dyn ToJs<JsNullable<JsNumber>>, )

Source

pub fn get_total_samples_received(&self) -> JsNullable<JsNumber>

Source

pub fn set_total_samples_received(&self, value: &dyn ToJs<JsNullable<JsNumber>>)

Source

pub fn get_total_samples_duration(&self) -> JsNullable<JsNumber>

Source

pub fn set_total_samples_duration(&self, value: &dyn ToJs<JsNullable<JsNumber>>)

Source

pub fn get_total_processing_delay(&self) -> JsNullable<JsNumber>

Source

pub fn set_total_processing_delay(&self, value: &dyn ToJs<JsNullable<JsNumber>>)

Source

pub fn get_total_inter_frame_delay(&self) -> JsNullable<JsNumber>

Source

pub fn set_total_inter_frame_delay( &self, value: &dyn ToJs<JsNullable<JsNumber>>, )

Source

pub fn get_total_decode_time(&self) -> JsNullable<JsNumber>

Source

pub fn set_total_decode_time(&self, value: &dyn ToJs<JsNullable<JsNumber>>)

Source

pub fn get_total_audio_energy(&self) -> JsNullable<JsNumber>

Source

pub fn set_total_audio_energy(&self, value: &dyn ToJs<JsNullable<JsNumber>>)

Source

pub fn get_silent_concealed_samples(&self) -> JsNullable<JsNumber>

Source

pub fn set_silent_concealed_samples( &self, value: &dyn ToJs<JsNullable<JsNumber>>, )

Source

pub fn get_removed_samples_for_acceleration(&self) -> JsNullable<JsNumber>

Source

pub fn set_removed_samples_for_acceleration( &self, value: &dyn ToJs<JsNullable<JsNumber>>, )

Source

pub fn get_remote_id(&self) -> JsNullable<JsString>

Source

pub fn set_remote_id(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_qp_sum(&self) -> JsNullable<JsNumber>

Source

pub fn set_qp_sum(&self, value: &dyn ToJs<JsNullable<JsNumber>>)

Source

pub fn get_pli_count(&self) -> JsNullable<JsNumber>

Source

pub fn set_pli_count(&self, value: &dyn ToJs<JsNullable<JsNumber>>)

Source

pub fn get_packets_discarded(&self) -> JsNullable<JsNumber>

Source

pub fn set_packets_discarded(&self, value: &dyn ToJs<JsNullable<JsNumber>>)

Source

pub fn get_nack_count(&self) -> JsNullable<JsNumber>

Source

pub fn set_nack_count(&self, value: &dyn ToJs<JsNullable<JsNumber>>)

Source

pub fn get_mid(&self) -> JsNullable<JsString>

Source

pub fn set_mid(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_last_packet_received_timestamp(&self) -> JsNullable<JsNumber>

Source

pub fn set_last_packet_received_timestamp( &self, value: &dyn ToJs<JsNullable<JsNumber>>, )

Source

pub fn get_kind(&self) -> JsString

Source

pub fn set_kind(&self, value: &dyn ToJs<JsString>)

Source

pub fn get_key_frames_decoded(&self) -> JsNullable<JsNumber>

Source

pub fn set_key_frames_decoded(&self, value: &dyn ToJs<JsNullable<JsNumber>>)

Source

pub fn get_jitter_buffer_emitted_count(&self) -> JsNullable<JsNumber>

Source

pub fn set_jitter_buffer_emitted_count( &self, value: &dyn ToJs<JsNullable<JsNumber>>, )

Source

pub fn get_jitter_buffer_delay(&self) -> JsNullable<JsNumber>

Source

pub fn set_jitter_buffer_delay(&self, value: &dyn ToJs<JsNullable<JsNumber>>)

Source

pub fn get_inserted_samples_for_deceleration(&self) -> JsNullable<JsNumber>

Source

pub fn set_inserted_samples_for_deceleration( &self, value: &dyn ToJs<JsNullable<JsNumber>>, )

Source

pub fn get_header_bytes_received(&self) -> JsNullable<JsNumber>

Source

pub fn set_header_bytes_received(&self, value: &dyn ToJs<JsNullable<JsNumber>>)

Source

pub fn get_frames_received(&self) -> JsNullable<JsNumber>

Source

pub fn set_frames_received(&self, value: &dyn ToJs<JsNullable<JsNumber>>)

Source

pub fn get_frames_per_second(&self) -> JsNullable<JsNumber>

Source

pub fn set_frames_per_second(&self, value: &dyn ToJs<JsNullable<JsNumber>>)

Source

pub fn get_frames_dropped(&self) -> JsNullable<JsNumber>

Source

pub fn set_frames_dropped(&self, value: &dyn ToJs<JsNullable<JsNumber>>)

Source

pub fn get_frames_decoded(&self) -> JsNullable<JsNumber>

Source

pub fn set_frames_decoded(&self, value: &dyn ToJs<JsNullable<JsNumber>>)

Source

pub fn get_frame_width(&self) -> JsNullable<JsNumber>

Source

pub fn set_frame_width(&self, value: &dyn ToJs<JsNullable<JsNumber>>)

Source

pub fn get_frame_height(&self) -> JsNullable<JsNumber>

Source

pub fn set_frame_height(&self, value: &dyn ToJs<JsNullable<JsNumber>>)

Source

pub fn get_fir_count(&self) -> JsNullable<JsNumber>

Source

pub fn set_fir_count(&self, value: &dyn ToJs<JsNullable<JsNumber>>)

Source

pub fn get_fec_packets_received(&self) -> JsNullable<JsNumber>

Source

pub fn set_fec_packets_received(&self, value: &dyn ToJs<JsNullable<JsNumber>>)

Source

pub fn get_fec_packets_discarded(&self) -> JsNullable<JsNumber>

Source

pub fn set_fec_packets_discarded(&self, value: &dyn ToJs<JsNullable<JsNumber>>)

Source

pub fn get_estimated_playout_timestamp(&self) -> JsNullable<JsNumber>

Source

pub fn set_estimated_playout_timestamp( &self, value: &dyn ToJs<JsNullable<JsNumber>>, )

Source

pub fn get_decoder_implementation(&self) -> JsNullable<JsString>

Source

pub fn set_decoder_implementation(&self, value: &dyn ToJs<JsNullable<JsString>>)

Source

pub fn get_concealment_events(&self) -> JsNullable<JsNumber>

Source

pub fn set_concealment_events(&self, value: &dyn ToJs<JsNullable<JsNumber>>)

Source

pub fn get_concealed_samples(&self) -> JsNullable<JsNumber>

Source

pub fn set_concealed_samples(&self, value: &dyn ToJs<JsNullable<JsNumber>>)

Source

pub fn get_bytes_received(&self) -> JsNullable<JsNumber>

Source

pub fn set_bytes_received(&self, value: &dyn ToJs<JsNullable<JsNumber>>)

Source

pub fn get_audio_level(&self) -> JsNullable<JsNumber>

Source

pub fn set_audio_level(&self, value: &dyn ToJs<JsNullable<JsNumber>>)

Methods from Deref<Target = JsObject>§

Source

pub fn js_get_field(&self, property: &dyn UseInJsCode) -> JsValue

Get a field value of in this object.

WSDOM provides built-in getters so you should use that instead when possible.

Use js_get_field only when needed

fn example(browser: Browser) {
    // you can get `window["location"]["href"]` like this
    let href: JsValue = wsdom::dom::location(&browser).js_get_field(&"href");

    // but you should use built-in getters instead
    let href: JsString = wsdom::dom::location(&browser).get_href();
}
Source

pub fn js_set_field(&self, property: &dyn UseInJsCode, value: &dyn UseInJsCode)

Set a field value of in this object.

WSDOM provides built-in setters so you should use that instead when possible.

Use js_set_field only when needed

fn example(browser: Browser) {
    // you can set `window["location"]["href"]` like this
    wsdom::dom::location(&browser).js_set_field(&"href", &"https://example.com/");

    // but you should use built-in setters instead
    wsdom::dom::location(&browser).set_href(&"https://example.com");
}
Source

pub fn js_call_method<'a>( &'a self, method_name: &'a str, args: impl IntoIterator<Item = &'a dyn UseInJsCode>, last_arg_variadic: bool, ) -> JsValue

Call a method on this object.

Most types in WSDOM already come with safe Rust wrappers for their methods, so you should use those instead.

fn example(browser: &Browser) {
    let console = wsdom::dom::console(browser);
    // you can call console.log like this
    console.js_call_method("log", [&"hello" as &_], false);
     
    // but the better way is to use
    wsdom::dom::console(&browser).log(&[&"Hello" as &_]);
}

Be aware that the first argument (method_name) is NOT escaped.

Set last_arg_variadic to true if you want to “spread” the last argument as obj.method(arg1, arg2, ...arg3).

Source

pub fn js_call_self<'a>( &'a self, args: impl IntoIterator<Item = &'a dyn UseInJsCode>, last_arg_variadic: bool, ) -> JsValue

Call this object: obj().

Most types in WSDOM already come with safe Rust wrappers for their methods, so you should use those instead.

Methods from Deref<Target = JsValue>§

Source

pub fn browser(&self) -> &Browser

Source

pub fn retrieve_json(&self) -> RetrieveFuture<'_, Value>

Retrive this value from the JS side to the Rust side. Returns Future whose output is a serde_json::Value.

§use wsdom::dom::Browser
§use wsdom::dom::HTMLInputElement;

async fn example(input: &HTMLInputElement) { let _val = input.get_value().retrieve_json().await; }

Trait Implementations§

Source§

impl AsRef<JsObject> for RTCInboundRtpStreamStats

Source§

fn as_ref(&self) -> &JsObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<JsValue> for RTCInboundRtpStreamStats

Source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<RTCInboundRtpStreamStats> for RTCInboundRtpStreamStats

Source§

fn as_ref(&self) -> &Self

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<RTCReceivedRtpStreamStats> for RTCInboundRtpStreamStats

Source§

fn as_ref(&self) -> &RTCReceivedRtpStreamStats

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<RTCRtpStreamStats> for RTCInboundRtpStreamStats

Source§

fn as_ref(&self) -> &RTCRtpStreamStats

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<RTCStats> for RTCInboundRtpStreamStats

Source§

fn as_ref(&self) -> &RTCStats

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Clone for RTCInboundRtpStreamStats

Source§

fn clone(&self) -> RTCInboundRtpStreamStats

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 Deref for RTCInboundRtpStreamStats

Source§

type Target = JsObject

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Into<JsObject> for RTCInboundRtpStreamStats

Source§

fn into(self) -> JsObject

Converts this type into the (usually inferred) input type.
Source§

impl Into<JsValue> for RTCInboundRtpStreamStats

Source§

fn into(self) -> JsValue

Converts this type into the (usually inferred) input type.
Source§

impl Into<RTCReceivedRtpStreamStats> for RTCInboundRtpStreamStats

Source§

fn into(self) -> RTCReceivedRtpStreamStats

Converts this type into the (usually inferred) input type.
Source§

impl Into<RTCRtpStreamStats> for RTCInboundRtpStreamStats

Source§

fn into(self) -> RTCRtpStreamStats

Converts this type into the (usually inferred) input type.
Source§

impl Into<RTCStats> for RTCInboundRtpStreamStats

Source§

fn into(self) -> RTCStats

Converts this type into the (usually inferred) input type.
Source§

impl JsCast for RTCInboundRtpStreamStats

Source§

fn unchecked_from_js(val: JsValue) -> Self

Source§

fn unchecked_from_js_ref(val: &JsValue) -> &Self

Source§

fn unchecked_into<T>(self) -> T
where T: JsCast,

Source§

fn unchecked_ref<T>(&self) -> &T
where T: JsCast,

Source§

impl RefCast for RTCInboundRtpStreamStats

Source§

type From = JsValue

Source§

fn ref_cast(_from: &Self::From) -> &Self

Source§

fn ref_cast_mut(_from: &mut Self::From) -> &mut Self

Source§

impl UseInJsCode for RTCInboundRtpStreamStats

Source§

fn serialize_to(&self, buf: &mut Formatter<'_>) -> Result

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

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

Source§

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>,

Source§

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>,

Source§

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> ToJs<T> for T
where T: UseInJsCode + ?Sized,