[][src]Struct web_sys::SourceBuffer

#[repr(transparent)]pub struct SourceBuffer { /* fields omitted */ }

The SourceBuffer class.

MDN Documentation

This API requires the following crate features to be activated: SourceBuffer

Methods

impl SourceBuffer[src]

pub fn mode(&self) -> SourceBufferAppendMode[src]

Getter for the mode field of this object.

MDN Documentation

This API requires the following crate features to be activated: SourceBuffer, SourceBufferAppendMode

impl SourceBuffer[src]

pub fn set_mode(&self, value: SourceBufferAppendMode)[src]

Setter for the mode field of this object.

MDN Documentation

This API requires the following crate features to be activated: SourceBuffer, SourceBufferAppendMode

impl SourceBuffer[src]

pub fn updating(&self) -> bool[src]

Getter for the updating field of this object.

MDN Documentation

This API requires the following crate features to be activated: SourceBuffer

impl SourceBuffer[src]

pub fn buffered(&self) -> Result<TimeRanges, JsValue>[src]

Getter for the buffered field of this object.

MDN Documentation

This API requires the following crate features to be activated: SourceBuffer, TimeRanges

impl SourceBuffer[src]

pub fn timestamp_offset(&self) -> f64[src]

Getter for the timestampOffset field of this object.

MDN Documentation

This API requires the following crate features to be activated: SourceBuffer

impl SourceBuffer[src]

pub fn set_timestamp_offset(&self, value: f64)[src]

Setter for the timestampOffset field of this object.

MDN Documentation

This API requires the following crate features to be activated: SourceBuffer

impl SourceBuffer[src]

pub fn append_window_start(&self) -> f64[src]

Getter for the appendWindowStart field of this object.

MDN Documentation

This API requires the following crate features to be activated: SourceBuffer

impl SourceBuffer[src]

pub fn set_append_window_start(&self, value: f64)[src]

Setter for the appendWindowStart field of this object.

MDN Documentation

This API requires the following crate features to be activated: SourceBuffer

impl SourceBuffer[src]

pub fn append_window_end(&self) -> f64[src]

Getter for the appendWindowEnd field of this object.

MDN Documentation

This API requires the following crate features to be activated: SourceBuffer

impl SourceBuffer[src]

pub fn set_append_window_end(&self, value: f64)[src]

Setter for the appendWindowEnd field of this object.

MDN Documentation

This API requires the following crate features to be activated: SourceBuffer

impl SourceBuffer[src]

pub fn onupdatestart(&self) -> Option<Function>[src]

Getter for the onupdatestart field of this object.

MDN Documentation

This API requires the following crate features to be activated: SourceBuffer

impl SourceBuffer[src]

pub fn set_onupdatestart(&self, value: Option<&Function>)[src]

Setter for the onupdatestart field of this object.

MDN Documentation

This API requires the following crate features to be activated: SourceBuffer

impl SourceBuffer[src]

pub fn onupdate(&self) -> Option<Function>[src]

Getter for the onupdate field of this object.

MDN Documentation

This API requires the following crate features to be activated: SourceBuffer

impl SourceBuffer[src]

pub fn set_onupdate(&self, value: Option<&Function>)[src]

Setter for the onupdate field of this object.

MDN Documentation

This API requires the following crate features to be activated: SourceBuffer

impl SourceBuffer[src]

pub fn onupdateend(&self) -> Option<Function>[src]

Getter for the onupdateend field of this object.

MDN Documentation

This API requires the following crate features to be activated: SourceBuffer

impl SourceBuffer[src]

pub fn set_onupdateend(&self, value: Option<&Function>)[src]

Setter for the onupdateend field of this object.

MDN Documentation

This API requires the following crate features to be activated: SourceBuffer

impl SourceBuffer[src]

pub fn onerror(&self) -> Option<Function>[src]

Getter for the onerror field of this object.

MDN Documentation

This API requires the following crate features to be activated: SourceBuffer

impl SourceBuffer[src]

pub fn set_onerror(&self, value: Option<&Function>)[src]

Setter for the onerror field of this object.

MDN Documentation

This API requires the following crate features to be activated: SourceBuffer

impl SourceBuffer[src]

pub fn onabort(&self) -> Option<Function>[src]

Getter for the onabort field of this object.

MDN Documentation

This API requires the following crate features to be activated: SourceBuffer

impl SourceBuffer[src]

pub fn set_onabort(&self, value: Option<&Function>)[src]

Setter for the onabort field of this object.

MDN Documentation

This API requires the following crate features to be activated: SourceBuffer

impl SourceBuffer[src]

pub fn abort(&self) -> Result<(), JsValue>[src]

The abort() method.

MDN Documentation

This API requires the following crate features to be activated: SourceBuffer

impl SourceBuffer[src]

pub fn append_buffer_with_array_buffer(
    &self,
    data: &ArrayBuffer
) -> Result<(), JsValue>
[src]

The appendBuffer() method.

MDN Documentation

This API requires the following crate features to be activated: SourceBuffer

impl SourceBuffer[src]

pub fn append_buffer_with_array_buffer_view(
    &self,
    data: &Object
) -> Result<(), JsValue>
[src]

The appendBuffer() method.

MDN Documentation

This API requires the following crate features to be activated: SourceBuffer

impl SourceBuffer[src]

pub fn append_buffer_with_u8_array(
    &self,
    data: &mut [u8]
) -> Result<(), JsValue>
[src]

The appendBuffer() method.

MDN Documentation

This API requires the following crate features to be activated: SourceBuffer

impl SourceBuffer[src]

pub fn append_buffer_async_with_array_buffer(
    &self,
    data: &ArrayBuffer
) -> Result<Promise, JsValue>
[src]

The appendBufferAsync() method.

MDN Documentation

This API requires the following crate features to be activated: SourceBuffer

impl SourceBuffer[src]

pub fn append_buffer_async_with_array_buffer_view(
    &self,
    data: &Object
) -> Result<Promise, JsValue>
[src]

The appendBufferAsync() method.

MDN Documentation

This API requires the following crate features to be activated: SourceBuffer

impl SourceBuffer[src]

pub fn append_buffer_async_with_u8_array(
    &self,
    data: &mut [u8]
) -> Result<Promise, JsValue>
[src]

The appendBufferAsync() method.

MDN Documentation

This API requires the following crate features to be activated: SourceBuffer

impl SourceBuffer[src]

pub fn change_type(&self, type_: &str) -> Result<(), JsValue>[src]

The changeType() method.

MDN Documentation

This API requires the following crate features to be activated: SourceBuffer

impl SourceBuffer[src]

pub fn remove(&self, start: f64, end: f64) -> Result<(), JsValue>[src]

The remove() method.

MDN Documentation

This API requires the following crate features to be activated: SourceBuffer

impl SourceBuffer[src]

pub fn remove_async(&self, start: f64, end: f64) -> Result<Promise, JsValue>[src]

The removeAsync() method.

MDN Documentation

This API requires the following crate features to be activated: SourceBuffer

Methods from Deref<Target = EventTarget>

pub fn add_event_listener_with_callback(
    &self,
    type_: &str,
    listener: &Function
) -> Result<(), JsValue>
[src]

The addEventListener() method.

MDN Documentation

This API requires the following crate features to be activated: EventTarget

pub fn add_event_listener_with_event_listener(
    &self,
    type_: &str,
    listener: &EventListener
) -> Result<(), JsValue>
[src]

The addEventListener() method.

MDN Documentation

This API requires the following crate features to be activated: EventListener, EventTarget

pub fn add_event_listener_with_callback_and_add_event_listener_options(
    &self,
    type_: &str,
    listener: &Function,
    options: &AddEventListenerOptions
) -> Result<(), JsValue>
[src]

The addEventListener() method.

MDN Documentation

This API requires the following crate features to be activated: AddEventListenerOptions, EventTarget

pub fn add_event_listener_with_event_listener_and_add_event_listener_options(
    &self,
    type_: &str,
    listener: &EventListener,
    options: &AddEventListenerOptions
) -> Result<(), JsValue>
[src]

The addEventListener() method.

MDN Documentation

This API requires the following crate features to be activated: AddEventListenerOptions, EventListener, EventTarget

pub fn add_event_listener_with_callback_and_bool(
    &self,
    type_: &str,
    listener: &Function,
    options: bool
) -> Result<(), JsValue>
[src]

The addEventListener() method.

MDN Documentation

This API requires the following crate features to be activated: EventTarget

pub fn add_event_listener_with_event_listener_and_bool(
    &self,
    type_: &str,
    listener: &EventListener,
    options: bool
) -> Result<(), JsValue>
[src]

The addEventListener() method.

MDN Documentation

This API requires the following crate features to be activated: EventListener, EventTarget

pub fn add_event_listener_with_callback_and_add_event_listener_options_and_wants_untrusted(
    &self,
    type_: &str,
    listener: &Function,
    options: &AddEventListenerOptions,
    wants_untrusted: Option<bool>
) -> Result<(), JsValue>
[src]

The addEventListener() method.

MDN Documentation

This API requires the following crate features to be activated: AddEventListenerOptions, EventTarget

pub fn add_event_listener_with_event_listener_and_add_event_listener_options_and_wants_untrusted(
    &self,
    type_: &str,
    listener: &EventListener,
    options: &AddEventListenerOptions,
    wants_untrusted: Option<bool>
) -> Result<(), JsValue>
[src]

The addEventListener() method.

MDN Documentation

This API requires the following crate features to be activated: AddEventListenerOptions, EventListener, EventTarget

pub fn add_event_listener_with_callback_and_bool_and_wants_untrusted(
    &self,
    type_: &str,
    listener: &Function,
    options: bool,
    wants_untrusted: Option<bool>
) -> Result<(), JsValue>
[src]

The addEventListener() method.

MDN Documentation

This API requires the following crate features to be activated: EventTarget

pub fn add_event_listener_with_event_listener_and_bool_and_wants_untrusted(
    &self,
    type_: &str,
    listener: &EventListener,
    options: bool,
    wants_untrusted: Option<bool>
) -> Result<(), JsValue>
[src]

The addEventListener() method.

MDN Documentation

This API requires the following crate features to be activated: EventListener, EventTarget

pub fn dispatch_event(&self, event: &Event) -> Result<bool, JsValue>[src]

The dispatchEvent() method.

MDN Documentation

This API requires the following crate features to be activated: Event, EventTarget

pub fn remove_event_listener_with_callback(
    &self,
    type_: &str,
    listener: &Function
) -> Result<(), JsValue>
[src]

The removeEventListener() method.

MDN Documentation

This API requires the following crate features to be activated: EventTarget

pub fn remove_event_listener_with_event_listener(
    &self,
    type_: &str,
    listener: &EventListener
) -> Result<(), JsValue>
[src]

The removeEventListener() method.

MDN Documentation

This API requires the following crate features to be activated: EventListener, EventTarget

pub fn remove_event_listener_with_callback_and_event_listener_options(
    &self,
    type_: &str,
    listener: &Function,
    options: &EventListenerOptions
) -> Result<(), JsValue>
[src]

The removeEventListener() method.

MDN Documentation

This API requires the following crate features to be activated: EventListenerOptions, EventTarget

pub fn remove_event_listener_with_event_listener_and_event_listener_options(
    &self,
    type_: &str,
    listener: &EventListener,
    options: &EventListenerOptions
) -> Result<(), JsValue>
[src]

The removeEventListener() method.

MDN Documentation

This API requires the following crate features to be activated: EventListener, EventListenerOptions, EventTarget

pub fn remove_event_listener_with_callback_and_bool(
    &self,
    type_: &str,
    listener: &Function,
    options: bool
) -> Result<(), JsValue>
[src]

The removeEventListener() method.

MDN Documentation

This API requires the following crate features to be activated: EventTarget

pub fn remove_event_listener_with_event_listener_and_bool(
    &self,
    type_: &str,
    listener: &EventListener,
    options: bool
) -> Result<(), JsValue>
[src]

The removeEventListener() method.

MDN Documentation

This API requires the following crate features to be activated: EventListener, EventTarget

Trait Implementations

impl AsRef<EventTarget> for SourceBuffer[src]

impl AsRef<JsValue> for SourceBuffer[src]

impl AsRef<Object> for SourceBuffer[src]

impl AsRef<SourceBuffer> for SourceBuffer[src]

impl Clone for SourceBuffer[src]

impl Debug for SourceBuffer[src]

impl Deref for SourceBuffer[src]

type Target = EventTarget

The resulting type after dereferencing.

impl Eq for SourceBuffer[src]

impl From<JsValue> for SourceBuffer[src]

impl From<SourceBuffer> for JsValue[src]

impl From<SourceBuffer> for EventTarget[src]

impl From<SourceBuffer> for Object[src]

impl FromWasmAbi for SourceBuffer[src]

type Abi = <JsValue as FromWasmAbi>::Abi

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for SourceBuffer[src]

type Abi = <JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl<'a> IntoWasmAbi for &'a SourceBuffer[src]

type Abi = <&'a JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl JsCast for SourceBuffer[src]

impl OptionFromWasmAbi for SourceBuffer[src]

impl OptionIntoWasmAbi for SourceBuffer[src]

impl<'a> OptionIntoWasmAbi for &'a SourceBuffer[src]

impl PartialEq<SourceBuffer> for SourceBuffer[src]

impl RefFromWasmAbi for SourceBuffer[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<SourceBuffer>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous. Read more

impl StructuralEq for SourceBuffer[src]

impl StructuralPartialEq for SourceBuffer[src]

impl WasmDescribe for SourceBuffer[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.