web-streams 0.1.3

WASM bindings for the Streams API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use wasm_bindgen::prelude::*;

#[derive(Debug, thiserror::Error, Clone)]
pub enum Error {
	#[error("unknown error: {0:?}")]
	Unknown(JsValue),
}

impl From<JsValue> for Error {
	fn from(e: JsValue) -> Self {
		Self::Unknown(e)
	}
}