[−][src]Struct web_sys::DomRequest
The DOMRequest object
This API requires the following crate features to be activated: DomRequest
Methods
impl DomRequest[src]
impl DomRequestpub fn then(&self) -> Result<JsValue, JsValue>[src]
pub fn then(&self) -> Result<JsValue, JsValue>The then() method
This API requires the following crate features to be activated: DomRequest
impl DomRequest[src]
impl DomRequestpub fn then_with_fulfill_callback(
&self,
fulfill_callback: Option<&Function>
) -> Result<JsValue, JsValue>[src]
pub fn then_with_fulfill_callback(
&self,
fulfill_callback: Option<&Function>
) -> Result<JsValue, JsValue>The then() method
This API requires the following crate features to be activated: DomRequest
impl DomRequest[src]
impl DomRequestpub fn then_with_fulfill_callback_and_reject_callback(
&self,
fulfill_callback: Option<&Function>,
reject_callback: Option<&Function>
) -> Result<JsValue, JsValue>[src]
pub fn then_with_fulfill_callback_and_reject_callback(
&self,
fulfill_callback: Option<&Function>,
reject_callback: Option<&Function>
) -> Result<JsValue, JsValue>The then() method
This API requires the following crate features to be activated: DomRequest
impl DomRequest[src]
impl DomRequestpub fn ready_state(&self) -> DomRequestReadyState[src]
pub fn ready_state(&self) -> DomRequestReadyStateThe readyState getter
This API requires the following crate features to be activated: DomRequest, DomRequestReadyState
impl DomRequest[src]
impl DomRequestpub fn result(&self) -> JsValue[src]
pub fn result(&self) -> JsValueThe result getter
This API requires the following crate features to be activated: DomRequest
impl DomRequest[src]
impl DomRequestpub fn error(&self) -> Option<DomException>[src]
pub fn error(&self) -> Option<DomException>The error getter
This API requires the following crate features to be activated: DomException, DomRequest
impl DomRequest[src]
impl DomRequestpub fn onsuccess(&self) -> Option<Function>[src]
pub fn onsuccess(&self) -> Option<Function>The onsuccess getter
This API requires the following crate features to be activated: DomRequest
impl DomRequest[src]
impl DomRequestpub fn set_onsuccess(&self, onsuccess: Option<&Function>)[src]
pub fn set_onsuccess(&self, onsuccess: Option<&Function>)The onsuccess setter
This API requires the following crate features to be activated: DomRequest
impl DomRequest[src]
impl DomRequestpub fn onerror(&self) -> Option<Function>[src]
pub fn onerror(&self) -> Option<Function>The onerror getter
This API requires the following crate features to be activated: DomRequest
impl DomRequest[src]
impl DomRequestpub fn set_onerror(&self, onerror: Option<&Function>)[src]
pub fn set_onerror(&self, onerror: Option<&Function>)The onerror setter
This API requires the following crate features to be activated: DomRequest
Methods from Deref<Target = EventTarget>
pub fn add_event_listener_with_callback(
&self,
type_: &str,
listener: &Function
) -> Result<(), JsValue>[src]
pub fn add_event_listener_with_callback(
&self,
type_: &str,
listener: &Function
) -> Result<(), JsValue>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>[src]
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>[src]
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>[src]
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
pub fn add_event_listener_with_callback_and_bool(
&self,
type_: &str,
listener: &Function,
options: bool
) -> Result<(), JsValue>[src]
pub fn add_event_listener_with_callback_and_bool(
&self,
type_: &str,
listener: &Function,
options: bool
) -> Result<(), JsValue>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>[src]
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>[src]
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>[src]
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
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]
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>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>[src]
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
pub fn dispatch_event(&self, event: &Event) -> Result<bool, JsValue>[src]
pub fn dispatch_event(&self, event: &Event) -> Result<bool, JsValue>The dispatchEvent() method
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]
pub fn remove_event_listener_with_callback(
&self,
type_: &str,
listener: &Function
) -> Result<(), JsValue>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>[src]
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>[src]
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>[src]
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
pub fn remove_event_listener_with_callback_and_bool(
&self,
type_: &str,
listener: &Function,
options: bool
) -> Result<(), JsValue>[src]
pub fn remove_event_listener_with_callback_and_bool(
&self,
type_: &str,
listener: &Function,
options: bool
) -> Result<(), JsValue>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>[src]
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
impl From<JsValue> for DomRequest[src]
impl From<JsValue> for DomRequestfn from(obj: JsValue) -> DomRequest[src]
fn from(obj: JsValue) -> DomRequestimpl From<DomRequest> for JsValue[src]
impl From<DomRequest> for JsValuefn from(obj: DomRequest) -> JsValue[src]
fn from(obj: DomRequest) -> JsValueimpl From<DomRequest> for EventTarget[src]
impl From<DomRequest> for EventTargetfn from(obj: DomRequest) -> EventTarget[src]
fn from(obj: DomRequest) -> EventTargetimpl From<DomRequest> for Object[src]
impl From<DomRequest> for Objectfn from(obj: DomRequest) -> Object[src]
fn from(obj: DomRequest) -> Objectimpl From<IdbFileRequest> for DomRequest[src]
impl From<IdbFileRequest> for DomRequestfn from(obj: IdbFileRequest) -> DomRequest[src]
fn from(obj: IdbFileRequest) -> DomRequestimpl AsRef<JsValue> for DomRequest[src]
impl AsRef<JsValue> for DomRequestimpl AsRef<EventTarget> for DomRequest[src]
impl AsRef<EventTarget> for DomRequestfn as_ref(&self) -> &EventTarget[src]
fn as_ref(&self) -> &EventTargetimpl AsRef<Object> for DomRequest[src]
impl AsRef<Object> for DomRequestimpl AsRef<DomRequest> for IdbFileRequest[src]
impl AsRef<DomRequest> for IdbFileRequestfn as_ref(&self) -> &DomRequest[src]
fn as_ref(&self) -> &DomRequestimpl Clone for DomRequest[src]
impl Clone for DomRequestfn clone(&self) -> DomRequest[src]
fn clone(&self) -> DomRequestfn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for DomRequest[src]
impl Debug for DomRequestimpl Deref for DomRequest[src]
impl Deref for DomRequesttype Target = EventTarget
The resulting type after dereferencing.
fn deref(&self) -> &EventTarget[src]
fn deref(&self) -> &EventTargetimpl JsCast for DomRequest[src]
impl JsCast for DomRequestfn instanceof(val: &JsValue) -> bool[src]
fn instanceof(val: &JsValue) -> boolfn unchecked_from_js(val: JsValue) -> Self[src]
fn unchecked_from_js(val: JsValue) -> Selffn unchecked_from_js_ref(val: &JsValue) -> &Self[src]
fn unchecked_from_js_ref(val: &JsValue) -> &Selffn is_instance_of<T>(&self) -> bool where
T: JsCast, [src]
fn is_instance_of<T>(&self) -> bool where
T: JsCast, Test whether this JS value is an instance of the type T. Read more
fn dyn_into<T>(self) -> Result<T, Self> where
T: JsCast, [src]
fn dyn_into<T>(self) -> Result<T, Self> where
T: JsCast, Performs a dynamic cast (checked at runtime) of this value into the target type T. Read more
fn dyn_ref<T>(&self) -> Option<&T> where
T: JsCast, [src]
fn dyn_ref<T>(&self) -> Option<&T> where
T: JsCast, Performs a dynamic cast (checked at runtime) of this value into the target type T. Read more
fn unchecked_into<T>(self) -> T where
T: JsCast, [src]
fn unchecked_into<T>(self) -> T where
T: JsCast, Performs a zero-cost unchecked cast into the specified type. Read more
fn unchecked_ref<T>(&self) -> &T where
T: JsCast, [src]
fn unchecked_ref<T>(&self) -> &T where
T: JsCast, Performs a zero-cost unchecked cast into a reference to the specified type. Read more
impl FromWasmAbi for DomRequest[src]
impl FromWasmAbi for DomRequesttype Abi = <JsValue as FromWasmAbi>::Abi
The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more
unsafe fn from_abi(js: Self::Abi, extra: &mut dyn Stack) -> Self[src]
unsafe fn from_abi(js: Self::Abi, extra: &mut dyn Stack) -> Selfimpl IntoWasmAbi for DomRequest[src]
impl IntoWasmAbi for DomRequesttype Abi = <JsValue as IntoWasmAbi>::Abi
The wasm ABI type that this converts into when crossing the ABI boundary. Read more
fn into_abi(self, extra: &mut dyn Stack) -> Self::Abi[src]
fn into_abi(self, extra: &mut dyn Stack) -> Self::Abiimpl<'a> IntoWasmAbi for &'a DomRequest[src]
impl<'a> IntoWasmAbi for &'a DomRequesttype Abi = <&'a JsValue as IntoWasmAbi>::Abi
The wasm ABI type that this converts into when crossing the ABI boundary. Read more
fn into_abi(self, extra: &mut dyn Stack) -> Self::Abi[src]
fn into_abi(self, extra: &mut dyn Stack) -> Self::Abiimpl WasmDescribe for DomRequest[src]
impl WasmDescribe for DomRequestimpl OptionIntoWasmAbi for DomRequest[src]
impl OptionIntoWasmAbi for DomRequestimpl<'a> OptionIntoWasmAbi for &'a DomRequest[src]
impl<'a> OptionIntoWasmAbi for &'a DomRequestimpl RefFromWasmAbi for DomRequest[src]
impl RefFromWasmAbi for DomRequesttype Abi = <JsValue as RefFromWasmAbi>::Abi
The wasm ABI type references to Self are recovered from.
type Anchor = ManuallyDrop<DomRequest>
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
unsafe fn ref_from_abi(js: Self::Abi, extra: &mut dyn Stack) -> Self::Anchor[src]
unsafe fn ref_from_abi(js: Self::Abi, extra: &mut dyn Stack) -> Self::Anchorimpl OptionFromWasmAbi for DomRequest[src]
impl OptionFromWasmAbi for DomRequestAuto Trait Implementations
impl !Send for DomRequest
impl !Send for DomRequestimpl !Sync for DomRequest
impl !Sync for DomRequestBlanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, impl<T> From for T[src]
impl<T> From for Timpl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeIdimpl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut Timpl<T> ReturnWasmAbi for T where
T: IntoWasmAbi, [src]
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi, type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi[src]
fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi