[][src]Module afterglow::prelude

Re-exports

pub use crate::bus::*;
pub use crate::container::*;
pub use crate::messenger::*;
pub use crate::renderer::*;
pub use dodrio;
pub use typed_html;
pub use wasm_bindgen;
pub use web_sys;

Modules

future

Asynchronous values.

mpsc

A multi-producer, single-consumer queue for sending values across asynchronous tasks.

oneshot

A channel for sending a single message between asynchronous tasks.

sink

Asynchronous sinks.

stream

Asynchronous streams.

Macros

bf

Like the format! macro for creating std::string::Strings but for bumpalo::collections::String.

dodrio

Structs

Closure

A handle to both a closure in Rust as well as JS closure which will invoke the Rust closure.

Event

The Event class.

EventListener

RAII type which is used to manage DOM event listeners.

JsFuture

A Rust Future backed by a JavaScript Promise.

JsValue

Representation of an object owned by JS.

Node

A virtual DOM node.

Receiver

The receiving end of an unbounded mpsc channel.

RenderContext

Common context available to all Render implementations.

Sender

The transmission end of an unbounded mpsc channel.

Traits

AsyncBufRead

Read bytes asynchronously.

AsyncRead

Read bytes asynchronously.

AsyncSeek

Seek bytes asynchronously.

AsyncWrite

Write bytes asynchronously.

Future

A future represents an asynchronous computation.

JsCast

A trait for checked and unchecked casting between JS types.

Sink

A Sink is a value into which other values can be sent, asynchronously.

Stream

A stream of values produced asynchronously.

TryFuture

A convenience for futures that return Result values that includes a variety of adapters tailored to such futures.

TryStream

A convenience for streams that return Result values that includes a variety of adapters tailored to such futures.

UnwrapThrowExt

An extension trait for Option<T> and Result<T, E> for unwraping the T value, or throwing a JS error if it is not available.

_

An extension trait for Futures that provides a variety of convenient adapters.

_

Adapters specific to Result-returning futures

_

An extension trait which adds utility methods to AsyncRead types.

_

An extension trait which adds utility methods to AsyncWrite types.

_

An extension trait which adds utility methods to AsyncSeek types.

_

An extension trait which adds utility methods to AsyncBufRead types.

_

An extension trait for Streams that provides a variety of convenient combinator functions.

_

Adapters specific to Result-returning streams

_

An extension trait for Sinks that provides a variety of convenient combinator functions.

Functions

future_to_promise

Converts a Rust Future into a JavaScript Promise.

spawn_local

Runs a Rust Future on the current thread.

text

Construct a text node.

Attribute Macros

__wasm_bindgen_class_marker
wasm_bindgen