Struct web_sys::FetchObserver
source · #[repr(transparent)]pub struct FetchObserver { /* private fields */ }Expand description
The FetchObserver object
This API requires the following crate features to be activated: FetchObserver
Implementations§
source§impl FetchObserver
impl FetchObserver
sourcepub fn state(&self) -> FetchState
pub fn state(&self) -> FetchState
The state getter
This API requires the following crate features to be activated: FetchObserver, FetchState
source§impl FetchObserver
impl FetchObserver
sourcepub fn onstatechange(&self) -> Option<Function>
pub fn onstatechange(&self) -> Option<Function>
The onstatechange getter
This API requires the following crate features to be activated: FetchObserver
source§impl FetchObserver
impl FetchObserver
sourcepub fn set_onstatechange(&self, onstatechange: Option<&Function>)
pub fn set_onstatechange(&self, onstatechange: Option<&Function>)
The onstatechange setter
This API requires the following crate features to be activated: FetchObserver
source§impl FetchObserver
impl FetchObserver
sourcepub fn onrequestprogress(&self) -> Option<Function>
pub fn onrequestprogress(&self) -> Option<Function>
The onrequestprogress getter
This API requires the following crate features to be activated: FetchObserver
source§impl FetchObserver
impl FetchObserver
sourcepub fn set_onrequestprogress(&self, onrequestprogress: Option<&Function>)
pub fn set_onrequestprogress(&self, onrequestprogress: Option<&Function>)
The onrequestprogress setter
This API requires the following crate features to be activated: FetchObserver
source§impl FetchObserver
impl FetchObserver
sourcepub fn onresponseprogress(&self) -> Option<Function>
pub fn onresponseprogress(&self) -> Option<Function>
The onresponseprogress getter
This API requires the following crate features to be activated: FetchObserver
source§impl FetchObserver
impl FetchObserver
sourcepub fn set_onresponseprogress(&self, onresponseprogress: Option<&Function>)
pub fn set_onresponseprogress(&self, onresponseprogress: Option<&Function>)
The onresponseprogress setter
This API requires the following crate features to be activated: FetchObserver
Trait Implementations§
source§impl AsRef<EventTarget> for FetchObserver
impl AsRef<EventTarget> for FetchObserver
source§fn as_ref(&self) -> &EventTarget
fn as_ref(&self) -> &EventTarget
source§impl AsRef<JsValue> for FetchObserver
impl AsRef<JsValue> for FetchObserver
source§impl AsRef<Object> for FetchObserver
impl AsRef<Object> for FetchObserver
source§impl Clone for FetchObserver
impl Clone for FetchObserver
source§fn clone(&self) -> FetchObserver
fn clone(&self) -> FetchObserver
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for FetchObserver
impl Debug for FetchObserver
source§impl From<FetchObserver> for EventTarget
impl From<FetchObserver> for EventTarget
source§fn from(obj: FetchObserver) -> EventTarget
fn from(obj: FetchObserver) -> EventTarget
source§impl From<FetchObserver> for JsValue
impl From<FetchObserver> for JsValue
source§fn from(obj: FetchObserver) -> JsValue
fn from(obj: FetchObserver) -> JsValue
source§impl From<FetchObserver> for Object
impl From<FetchObserver> for Object
source§fn from(obj: FetchObserver) -> Object
fn from(obj: FetchObserver) -> Object
source§impl From<JsValue> for FetchObserver
impl From<JsValue> for FetchObserver
source§fn from(obj: JsValue) -> FetchObserver
fn from(obj: JsValue) -> FetchObserver
source§impl FromWasmAbi for FetchObserver
impl FromWasmAbi for FetchObserver
source§impl<'a> IntoWasmAbi for &'a FetchObserver
impl<'a> IntoWasmAbi for &'a FetchObserver
source§impl IntoWasmAbi for FetchObserver
impl IntoWasmAbi for FetchObserver
source§impl JsCast for FetchObserver
impl JsCast for FetchObserver
source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
instanceof check to see whether the JsValue
provided is an instance of this type. Read moresource§fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js(val: JsValue) -> Self
source§fn unchecked_from_js_ref(val: &JsValue) -> &Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self
source§fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
T. Read moresource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
T. Read moresource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
T. Read moresource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
source§impl OptionFromWasmAbi for FetchObserver
impl OptionFromWasmAbi for FetchObserver
source§impl<'a> OptionIntoWasmAbi for &'a FetchObserver
impl<'a> OptionIntoWasmAbi for &'a FetchObserver
source§impl OptionIntoWasmAbi for FetchObserver
impl OptionIntoWasmAbi for FetchObserver
source§impl RefFromWasmAbi for FetchObserver
impl RefFromWasmAbi for FetchObserver
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self are recovered from.§type Anchor = ManuallyDrop<FetchObserver>
type Anchor = ManuallyDrop<FetchObserver>
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 moreAuto Trait Implementations§
impl RefUnwindSafe for FetchObserver
impl Send for FetchObserver
impl Sync for FetchObserver
impl Unpin for FetchObserver
impl UnwindSafe for FetchObserver
Blanket Implementations§
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::Abisource§fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err. Read more