Trait forky_web::ResultTJsValueExt

source ·
pub trait ResultTJsValueExt<T> {
    // Required method
    fn anyhow(self) -> Result<T>;
}

Required Methods§

source

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>

source§

fn anyhow(self) -> Result<T>

Map a Result<T,JsValue> to an anyhow::Result.

Implementors§