pub struct JsSymbol(/* private fields */);Methods from Deref<Target = JsValue>§
pub fn browser(&self) -> &Browser
Sourcepub fn retrieve_json(&self) -> RetrieveFuture<'_, Value>
pub fn retrieve_json(&self) -> RetrieveFuture<'_, Value>
Retrive this value from the JS side to the Rust side. Returns Future whose output is a serde_json::Value.
async fn example(input: &HTMLInputElement) {
let _val = input.get_value().retrieve_json().await;
}Trait Implementations§
Source§impl JsCast for JsSymbol
impl JsCast for JsSymbol
fn unchecked_from_js(val: JsValue) -> JsSymbol
fn unchecked_from_js_ref(val: &JsValue) -> &JsSymbol
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_ref<T>(&self) -> &Twhere
T: JsCast,
Source§impl RpcDeserialize for JsSymbol
impl RpcDeserialize for JsSymbol
Auto Trait Implementations§
impl Freeze for JsSymbol
impl !RefUnwindSafe for JsSymbol
impl Send for JsSymbol
impl Sync for JsSymbol
impl Unpin for JsSymbol
impl !UnwindSafe for JsSymbol
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more