Struct web_sys::SpeechSynthesisUtterance [−][src]
#[repr(transparent)]pub struct SpeechSynthesisUtterance { /* fields omitted */ }
Expand description
The SpeechSynthesisUtterance
class.
This API requires the following crate features to be activated: SpeechSynthesisUtterance
Implementations
Getter for the text
field of this object.
This API requires the following crate features to be activated: SpeechSynthesisUtterance
Setter for the text
field of this object.
This API requires the following crate features to be activated: SpeechSynthesisUtterance
Getter for the lang
field of this object.
This API requires the following crate features to be activated: SpeechSynthesisUtterance
Setter for the lang
field of this object.
This API requires the following crate features to be activated: SpeechSynthesisUtterance
Getter for the voice
field of this object.
This API requires the following crate features to be activated: SpeechSynthesisUtterance
, SpeechSynthesisVoice
Setter for the voice
field of this object.
This API requires the following crate features to be activated: SpeechSynthesisUtterance
, SpeechSynthesisVoice
Getter for the volume
field of this object.
This API requires the following crate features to be activated: SpeechSynthesisUtterance
Setter for the volume
field of this object.
This API requires the following crate features to be activated: SpeechSynthesisUtterance
Getter for the rate
field of this object.
This API requires the following crate features to be activated: SpeechSynthesisUtterance
Setter for the rate
field of this object.
This API requires the following crate features to be activated: SpeechSynthesisUtterance
Getter for the pitch
field of this object.
This API requires the following crate features to be activated: SpeechSynthesisUtterance
Setter for the pitch
field of this object.
This API requires the following crate features to be activated: SpeechSynthesisUtterance
Getter for the onstart
field of this object.
This API requires the following crate features to be activated: SpeechSynthesisUtterance
Setter for the onstart
field of this object.
This API requires the following crate features to be activated: SpeechSynthesisUtterance
Getter for the onend
field of this object.
This API requires the following crate features to be activated: SpeechSynthesisUtterance
Setter for the onend
field of this object.
This API requires the following crate features to be activated: SpeechSynthesisUtterance
Getter for the onerror
field of this object.
This API requires the following crate features to be activated: SpeechSynthesisUtterance
Setter for the onerror
field of this object.
This API requires the following crate features to be activated: SpeechSynthesisUtterance
Getter for the onpause
field of this object.
This API requires the following crate features to be activated: SpeechSynthesisUtterance
Setter for the onpause
field of this object.
This API requires the following crate features to be activated: SpeechSynthesisUtterance
Getter for the onresume
field of this object.
This API requires the following crate features to be activated: SpeechSynthesisUtterance
Setter for the onresume
field of this object.
This API requires the following crate features to be activated: SpeechSynthesisUtterance
Getter for the onmark
field of this object.
This API requires the following crate features to be activated: SpeechSynthesisUtterance
Setter for the onmark
field of this object.
This API requires the following crate features to be activated: SpeechSynthesisUtterance
Getter for the onboundary
field of this object.
This API requires the following crate features to be activated: SpeechSynthesisUtterance
Setter for the onboundary
field of this object.
This API requires the following crate features to be activated: SpeechSynthesisUtterance
The new SpeechSynthesisUtterance(..)
constructor, creating a new instance of SpeechSynthesisUtterance
.
This API requires the following crate features to be activated: SpeechSynthesisUtterance
The new SpeechSynthesisUtterance(..)
constructor, creating a new instance of SpeechSynthesisUtterance
.
This API requires the following crate features to be activated: SpeechSynthesisUtterance
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.
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 SpeechSynthesisUtterance
impl !Send for SpeechSynthesisUtterance
impl !Sync for SpeechSynthesisUtterance
impl Unpin for SpeechSynthesisUtterance
impl UnwindSafe for SpeechSynthesisUtterance
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