[][src]Struct moxie_dom::elements::BodyBuilder

#[must_use = "needs to be built"]pub struct BodyBuilder { /* fields omitted */ }

The HTML <body> element represents the content of an HTML document. There can be only one <body> element in a document.

A type for initializing the element's attributes before calling build.

Implementations

impl BodyBuilder[src]

pub fn build(self) -> Body[src]

Initialize the element with all of the attributes so far.

impl BodyBuilder[src]

pub fn onafterprint(self, callback: impl FnMut(AfterPrint) + 'static) -> Self[src]

Set an event handler.

pub fn onbeforeprint(self, callback: impl FnMut(BeforePrint) + 'static) -> Self[src]

Set an event handler.

pub fn onhashchange(self, callback: impl FnMut(HashChange) + 'static) -> Self[src]

Set an event handler.

pub fn onmessage(self, callback: impl FnMut(WebsocketMessage) + 'static) -> Self[src]

Set an event handler.

pub fn onoffline(self, callback: impl FnMut(Offline) + 'static) -> Self[src]

Set an event handler.

pub fn ononline(self, callback: impl FnMut(Online) + 'static) -> Self[src]

Set an event handler.

pub fn onstorage(self, callback: impl FnMut(Storage) + 'static) -> Self[src]

Set an event handler.

pub fn onunload(self, callback: impl FnMut(Unload) + 'static) -> Self[src]

Set an event handler.

Trait Implementations

impl Element for BodyBuilder[src]

impl EventTarget<AfterPrint> for BodyBuilder[src]

impl EventTarget<BeforePrint> for BodyBuilder[src]

impl<E> EventTarget<E> for BodyBuilder where
    E: GlobalEvent
[src]

impl EventTarget<HashChange> for BodyBuilder[src]

impl EventTarget<Offline> for BodyBuilder[src]

impl EventTarget<Online> for BodyBuilder[src]

impl EventTarget<Storage> for BodyBuilder[src]

impl EventTarget<Unload> for BodyBuilder[src]

impl EventTarget<WebsocketMessage> for BodyBuilder[src]

impl GlobalEventHandler for BodyBuilder[src]

impl HtmlElement for BodyBuilder[src]

impl Node for BodyBuilder[src]

impl<Child> Parent<Child> for BodyBuilder where
    Child: FlowContent
[src]

Auto Trait Implementations

impl !RefUnwindSafe for BodyBuilder

impl !Send for BodyBuilder

impl !Sync for BodyBuilder

impl Unpin for BodyBuilder

impl !UnwindSafe for BodyBuilder

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<N> Child for N where
    N: Node
[src]

impl<T> Downcast for T where
    T: Any

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.