Trait forky_web::ResultTJsValueExt
source · pub trait ResultTJsValueExt<T> {
// Required method
fn anyhow(self) -> Result<T>;
}
Required Methods§
sourcefn anyhow(self) -> Result<T>
fn anyhow(self) -> Result<T>
Map a Result<T,JsValue>
to an anyhow::Result
.
Implementations on Foreign Types§
source§impl<T> ResultTJsValueExt<T> for Result<T, JsValue>
impl<T> ResultTJsValueExt<T> for Result<T, JsValue>
source§fn anyhow(self) -> Result<T>
fn anyhow(self) -> Result<T>
Map a Result<T,JsValue>
to an anyhow::Result
.