Struct web_sys::HtmlBodyElement
source · #[repr(transparent)]pub struct HtmlBodyElement { /* private fields */ }
Expand description
The HTMLBodyElement
object
This API requires the following crate features to be activated: HtmlBodyElement
Implementations§
source§impl HtmlBodyElement
impl HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
sourcepub fn set_v_link(&self, v_link: &str)
pub fn set_v_link(&self, v_link: &str)
The vLink
setter
This API requires the following crate features to be activated: HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
sourcepub fn set_a_link(&self, a_link: &str)
pub fn set_a_link(&self, a_link: &str)
The aLink
setter
This API requires the following crate features to be activated: HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
sourcepub fn set_bg_color(&self, bg_color: &str)
pub fn set_bg_color(&self, bg_color: &str)
The bgColor
setter
This API requires the following crate features to be activated: HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
sourcepub fn background(&self) -> String
pub fn background(&self) -> String
The background
getter
This API requires the following crate features to be activated: HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
sourcepub fn set_background(&self, background: &str)
pub fn set_background(&self, background: &str)
The background
setter
This API requires the following crate features to be activated: HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
sourcepub fn onafterprint(&self) -> Option<Function>
pub fn onafterprint(&self) -> Option<Function>
The onafterprint
getter
This API requires the following crate features to be activated: HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
sourcepub fn set_onafterprint(&self, onafterprint: Option<&Function>)
pub fn set_onafterprint(&self, onafterprint: Option<&Function>)
The onafterprint
setter
This API requires the following crate features to be activated: HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
sourcepub fn onbeforeprint(&self) -> Option<Function>
pub fn onbeforeprint(&self) -> Option<Function>
The onbeforeprint
getter
This API requires the following crate features to be activated: HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
sourcepub fn set_onbeforeprint(&self, onbeforeprint: Option<&Function>)
pub fn set_onbeforeprint(&self, onbeforeprint: Option<&Function>)
The onbeforeprint
setter
This API requires the following crate features to be activated: HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
sourcepub fn onbeforeunload(&self) -> Option<Function>
pub fn onbeforeunload(&self) -> Option<Function>
The onbeforeunload
getter
This API requires the following crate features to be activated: HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
sourcepub fn set_onbeforeunload(&self, onbeforeunload: Option<&Function>)
pub fn set_onbeforeunload(&self, onbeforeunload: Option<&Function>)
The onbeforeunload
setter
This API requires the following crate features to be activated: HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
sourcepub fn onhashchange(&self) -> Option<Function>
pub fn onhashchange(&self) -> Option<Function>
The onhashchange
getter
This API requires the following crate features to be activated: HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
sourcepub fn set_onhashchange(&self, onhashchange: Option<&Function>)
pub fn set_onhashchange(&self, onhashchange: Option<&Function>)
The onhashchange
setter
This API requires the following crate features to be activated: HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
sourcepub fn onlanguagechange(&self) -> Option<Function>
pub fn onlanguagechange(&self) -> Option<Function>
The onlanguagechange
getter
This API requires the following crate features to be activated: HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
sourcepub fn set_onlanguagechange(&self, onlanguagechange: Option<&Function>)
pub fn set_onlanguagechange(&self, onlanguagechange: Option<&Function>)
The onlanguagechange
setter
This API requires the following crate features to be activated: HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
sourcepub fn set_onmessage(&self, onmessage: Option<&Function>)
pub fn set_onmessage(&self, onmessage: Option<&Function>)
The onmessage
setter
This API requires the following crate features to be activated: HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
sourcepub fn onmessageerror(&self) -> Option<Function>
pub fn onmessageerror(&self) -> Option<Function>
The onmessageerror
getter
This API requires the following crate features to be activated: HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
sourcepub fn set_onmessageerror(&self, onmessageerror: Option<&Function>)
pub fn set_onmessageerror(&self, onmessageerror: Option<&Function>)
The onmessageerror
setter
This API requires the following crate features to be activated: HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
sourcepub fn set_onoffline(&self, onoffline: Option<&Function>)
pub fn set_onoffline(&self, onoffline: Option<&Function>)
The onoffline
setter
This API requires the following crate features to be activated: HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
sourcepub fn set_ononline(&self, ononline: Option<&Function>)
pub fn set_ononline(&self, ononline: Option<&Function>)
The ononline
setter
This API requires the following crate features to be activated: HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
sourcepub fn onpagehide(&self) -> Option<Function>
pub fn onpagehide(&self) -> Option<Function>
The onpagehide
getter
This API requires the following crate features to be activated: HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
sourcepub fn set_onpagehide(&self, onpagehide: Option<&Function>)
pub fn set_onpagehide(&self, onpagehide: Option<&Function>)
The onpagehide
setter
This API requires the following crate features to be activated: HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
sourcepub fn onpageshow(&self) -> Option<Function>
pub fn onpageshow(&self) -> Option<Function>
The onpageshow
getter
This API requires the following crate features to be activated: HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
sourcepub fn set_onpageshow(&self, onpageshow: Option<&Function>)
pub fn set_onpageshow(&self, onpageshow: Option<&Function>)
The onpageshow
setter
This API requires the following crate features to be activated: HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
sourcepub fn onpopstate(&self) -> Option<Function>
pub fn onpopstate(&self) -> Option<Function>
The onpopstate
getter
This API requires the following crate features to be activated: HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
sourcepub fn set_onpopstate(&self, onpopstate: Option<&Function>)
pub fn set_onpopstate(&self, onpopstate: Option<&Function>)
The onpopstate
setter
This API requires the following crate features to be activated: HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
sourcepub fn set_onstorage(&self, onstorage: Option<&Function>)
pub fn set_onstorage(&self, onstorage: Option<&Function>)
The onstorage
setter
This API requires the following crate features to be activated: HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
source§impl HtmlBodyElement
impl HtmlBodyElement
sourcepub fn set_onunload(&self, onunload: Option<&Function>)
pub fn set_onunload(&self, onunload: Option<&Function>)
The onunload
setter
This API requires the following crate features to be activated: HtmlBodyElement
Trait Implementations§
source§impl AsRef<Element> for HtmlBodyElement
impl AsRef<Element> for HtmlBodyElement
source§impl AsRef<EventTarget> for HtmlBodyElement
impl AsRef<EventTarget> for HtmlBodyElement
source§fn as_ref(&self) -> &EventTarget
fn as_ref(&self) -> &EventTarget
source§impl AsRef<HtmlElement> for HtmlBodyElement
impl AsRef<HtmlElement> for HtmlBodyElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<JsValue> for HtmlBodyElement
impl AsRef<JsValue> for HtmlBodyElement
source§impl AsRef<Node> for HtmlBodyElement
impl AsRef<Node> for HtmlBodyElement
source§impl AsRef<Object> for HtmlBodyElement
impl AsRef<Object> for HtmlBodyElement
source§impl Clone for HtmlBodyElement
impl Clone for HtmlBodyElement
source§fn clone(&self) -> HtmlBodyElement
fn clone(&self) -> HtmlBodyElement
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HtmlBodyElement
impl Debug for HtmlBodyElement
source§impl From<HtmlBodyElement> for Element
impl From<HtmlBodyElement> for Element
source§fn from(obj: HtmlBodyElement) -> Element
fn from(obj: HtmlBodyElement) -> Element
source§impl From<HtmlBodyElement> for EventTarget
impl From<HtmlBodyElement> for EventTarget
source§fn from(obj: HtmlBodyElement) -> EventTarget
fn from(obj: HtmlBodyElement) -> EventTarget
source§impl From<HtmlBodyElement> for HtmlElement
impl From<HtmlBodyElement> for HtmlElement
source§fn from(obj: HtmlBodyElement) -> HtmlElement
fn from(obj: HtmlBodyElement) -> HtmlElement
source§impl From<HtmlBodyElement> for JsValue
impl From<HtmlBodyElement> for JsValue
source§fn from(obj: HtmlBodyElement) -> JsValue
fn from(obj: HtmlBodyElement) -> JsValue
source§impl From<HtmlBodyElement> for Node
impl From<HtmlBodyElement> for Node
source§fn from(obj: HtmlBodyElement) -> Node
fn from(obj: HtmlBodyElement) -> Node
source§impl From<HtmlBodyElement> for Object
impl From<HtmlBodyElement> for Object
source§fn from(obj: HtmlBodyElement) -> Object
fn from(obj: HtmlBodyElement) -> Object
source§impl From<JsValue> for HtmlBodyElement
impl From<JsValue> for HtmlBodyElement
source§fn from(obj: JsValue) -> HtmlBodyElement
fn from(obj: JsValue) -> HtmlBodyElement
source§impl FromWasmAbi for HtmlBodyElement
impl FromWasmAbi for HtmlBodyElement
source§impl<'a> IntoWasmAbi for &'a HtmlBodyElement
impl<'a> IntoWasmAbi for &'a HtmlBodyElement
source§impl IntoWasmAbi for HtmlBodyElement
impl IntoWasmAbi for HtmlBodyElement
source§impl JsCast for HtmlBodyElement
impl JsCast for HtmlBodyElement
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 HtmlBodyElement
impl OptionFromWasmAbi for HtmlBodyElement
source§impl<'a> OptionIntoWasmAbi for &'a HtmlBodyElement
impl<'a> OptionIntoWasmAbi for &'a HtmlBodyElement
source§impl OptionIntoWasmAbi for HtmlBodyElement
impl OptionIntoWasmAbi for HtmlBodyElement
source§impl RefFromWasmAbi for HtmlBodyElement
impl RefFromWasmAbi for HtmlBodyElement
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.§type Anchor = ManuallyDrop<HtmlBodyElement>
type Anchor = ManuallyDrop<HtmlBodyElement>
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 HtmlBodyElement
impl Send for HtmlBodyElement
impl Sync for HtmlBodyElement
impl Unpin for HtmlBodyElement
impl UnwindSafe for HtmlBodyElement
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::Abi
source§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