Skip to main content

Crate dnet_js

Crate dnet_js 

Source
Expand description

Common features used by WebSocket (WASM), WebWorker and MessagePort transports.

Re-exports§

pub use transferable::FromTransferable;
pub use transferable::IntoTransferable;
pub use transferable::Transferable;
pub use transferable::TransferableTransport;
pub use transferable::WithTransferable;
pub use wrapper::Wrapper;

Modules§

state
State used in WASM transports.
transferable
Transport of data with Transferable data over underlying transports implementing PostMessage.
wrapper
Message wrapper for Transport.

Structs§

Transport
Transport of data over underlying transports implementing PostMessage.

Traits§

PostMessage
A trait implemented by underlying transports that can be wrapped with Transport or TransferableTransport.

Type Aliases§

Error
Transport error.

Derive Macros§

IntoTransferable
Derive macro that can be used to automatically implement IntoTransferable/FromTransferable traits.