Struct web_sys::SourceBuffer [−][src]
#[repr(transparent)]pub struct SourceBuffer { /* fields omitted */ }
Expand description
The SourceBuffer
class.
This API requires the following crate features to be activated: SourceBuffer
Implementations
Getter for the mode
field of this object.
This API requires the following crate features to be activated: SourceBuffer
, SourceBufferAppendMode
Setter for the mode
field of this object.
This API requires the following crate features to be activated: SourceBuffer
, SourceBufferAppendMode
Getter for the updating
field of this object.
This API requires the following crate features to be activated: SourceBuffer
Getter for the buffered
field of this object.
This API requires the following crate features to be activated: SourceBuffer
, TimeRanges
Getter for the timestampOffset
field of this object.
This API requires the following crate features to be activated: SourceBuffer
Setter for the timestampOffset
field of this object.
This API requires the following crate features to be activated: SourceBuffer
Getter for the appendWindowStart
field of this object.
This API requires the following crate features to be activated: SourceBuffer
Setter for the appendWindowStart
field of this object.
This API requires the following crate features to be activated: SourceBuffer
Getter for the appendWindowEnd
field of this object.
This API requires the following crate features to be activated: SourceBuffer
Setter for the appendWindowEnd
field of this object.
This API requires the following crate features to be activated: SourceBuffer
Getter for the onupdatestart
field of this object.
This API requires the following crate features to be activated: SourceBuffer
Setter for the onupdatestart
field of this object.
This API requires the following crate features to be activated: SourceBuffer
Getter for the onupdate
field of this object.
This API requires the following crate features to be activated: SourceBuffer
Setter for the onupdate
field of this object.
This API requires the following crate features to be activated: SourceBuffer
Getter for the onupdateend
field of this object.
This API requires the following crate features to be activated: SourceBuffer
Setter for the onupdateend
field of this object.
This API requires the following crate features to be activated: SourceBuffer
Getter for the onerror
field of this object.
This API requires the following crate features to be activated: SourceBuffer
Setter for the onerror
field of this object.
This API requires the following crate features to be activated: SourceBuffer
Getter for the onabort
field of this object.
This API requires the following crate features to be activated: SourceBuffer
Setter for the onabort
field of this object.
This API requires the following crate features to be activated: SourceBuffer
The appendBuffer()
method.
This API requires the following crate features to be activated: SourceBuffer
The appendBuffer()
method.
This API requires the following crate features to be activated: SourceBuffer
The appendBuffer()
method.
This API requires the following crate features to be activated: SourceBuffer
pub fn append_buffer_async_with_array_buffer(
&self,
data: &ArrayBuffer
) -> Result<Promise, JsValue>
pub fn append_buffer_async_with_array_buffer(
&self,
data: &ArrayBuffer
) -> Result<Promise, JsValue>
The appendBufferAsync()
method.
This API requires the following crate features to be activated: SourceBuffer
The appendBufferAsync()
method.
This API requires the following crate features to be activated: SourceBuffer
The appendBufferAsync()
method.
This API requires the following crate features to be activated: SourceBuffer
The changeType()
method.
This API requires the following crate features to be activated: SourceBuffer
The removeAsync()
method.
This API requires the following crate features to be activated: SourceBuffer
Methods from Deref<Target = EventTarget>
The addEventListener()
method.
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>
pub fn add_event_listener_with_event_listener(
&self,
type_: &str,
listener: &EventListener
) -> Result<(), JsValue>
The addEventListener()
method.
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>
pub fn add_event_listener_with_callback_and_add_event_listener_options(
&self,
type_: &str,
listener: &Function,
options: &AddEventListenerOptions
) -> Result<(), JsValue>
The addEventListener()
method.
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>
pub fn add_event_listener_with_event_listener_and_add_event_listener_options(
&self,
type_: &str,
listener: &EventListener,
options: &AddEventListenerOptions
) -> Result<(), JsValue>
The addEventListener()
method.
This API requires the following crate features to be activated: AddEventListenerOptions
, EventListener
, EventTarget
The addEventListener()
method.
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>
pub fn add_event_listener_with_event_listener_and_bool(
&self,
type_: &str,
listener: &EventListener,
options: bool
) -> Result<(), JsValue>
The addEventListener()
method.
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>
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>
The addEventListener()
method.
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>
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>
The addEventListener()
method.
This API requires the following crate features to be activated: AddEventListenerOptions
, EventListener
, EventTarget
The addEventListener()
method.
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>
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>
The addEventListener()
method.
This API requires the following crate features to be activated: EventListener
, EventTarget
The dispatchEvent()
method.
This API requires the following crate features to be activated: Event
, EventTarget
The removeEventListener()
method.
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>
pub fn remove_event_listener_with_event_listener(
&self,
type_: &str,
listener: &EventListener
) -> Result<(), JsValue>
The removeEventListener()
method.
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>
pub fn remove_event_listener_with_callback_and_event_listener_options(
&self,
type_: &str,
listener: &Function,
options: &EventListenerOptions
) -> Result<(), JsValue>
The removeEventListener()
method.
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>
pub fn remove_event_listener_with_event_listener_and_event_listener_options(
&self,
type_: &str,
listener: &EventListener,
options: &EventListenerOptions
) -> Result<(), JsValue>
The removeEventListener()
method.
This API requires the following crate features to be activated: EventListener
, EventListenerOptions
, EventTarget
The removeEventListener()
method.
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>
pub fn remove_event_listener_with_event_listener_and_bool(
&self,
type_: &str,
listener: &EventListener,
options: bool
) -> Result<(), JsValue>
The removeEventListener()
method.
This API requires the following crate features to be activated: EventListener
, EventTarget
Trait Implementations
Performs the conversion.
Performs the conversion.
type Target = EventTarget
type Target = EventTarget
The resulting type after dereferencing.
Dereferences the value.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs a dynamic instanceof
check to see whether the JsValue
provided is an instance of this type. Read more
Performs a zero-cost unchecked conversion from a JsValue
into an
instance of Self
Read more
Performs a zero-cost unchecked conversion from a &JsValue
into an
instance of &Self
. Read more
Test whether this JS value has a type T
. Read more
Performs a dynamic cast (checked at runtime) of this value into the
target type T
. Read more
Performs a dynamic cast (checked at runtime) of this value into the
target type T
. Read more
Performs a zero-cost unchecked cast into the specified type. Read more
Performs a zero-cost unchecked cast into a reference to the specified type. Read more
Test whether this JS value is an instance of the type T
. Read more
Performs a dynamic check to see whether the JsValue
provided
is a value of this type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
The wasm ABI type references to Self
are recovered from.
type Anchor = ManuallyDrop<SourceBuffer>
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
Recover a Self::Anchor
from Self::Abi
. Read more
Auto Trait Implementations
impl RefUnwindSafe for SourceBuffer
impl !Send for SourceBuffer
impl !Sync for SourceBuffer
impl Unpin for SourceBuffer
impl UnwindSafe for SourceBuffer
Blanket Implementations
Mutably borrows from an owned value. Read more
type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
Same as IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more