/// Stores the value and associates it with the given key.
Stores the value and associates it with the given key.
Stores the value and associates it with the given key .
pub async fn put<T: Serialize>(&mut self, key: &str, value: T) -> Result<()> {
        JsFuture::from(self.inner.put_internal(key, JsValue::from_serde(&value)?)?)
            .await
            .map_err(Error::from)
            .map(|_| ())
    }
pub async fn put < T : Serialize > ( & mut self , key : & str , value : T ) -> Result < ( ) > { JsFuture :: from ( self . inner . put_internal ( key , JsValue :: from_serde ( & value ) ? ) ? ) . await . map_err ( Error :: from ) . map ( | _ | ( ) ) }
Stores the value and associates it with the given key.
Stores the value and associates it with the given key .
&mut self
key
&str
value
T