pub(crate) struct JsHandle {
channel: ChannelOwner,
var: Mutex<Var>,
}Fields§
§channel: ChannelOwner§var: Mutex<Var>Implementations§
Source§impl JsHandle
impl JsHandle
pub(crate) fn try_new(channel: ChannelOwner) -> Result<Self, Error>
pub(crate) async fn get_property( &self, name: &str, ) -> Result<Weak<JsHandle>, Arc<Error>>
pub(crate) async fn get_properties( &self, ) -> Result<HashMap<String, Weak<JsHandle>>, Arc<Error>>
pub(crate) async fn dispose(&self) -> Result<(), Arc<Error>>
pub(crate) async fn json_value<U>(&self) -> Result<U, Arc<Error>>where
U: DeserializeOwned,
Trait Implementations§
Source§impl RemoteObject for JsHandle
impl RemoteObject for JsHandle
fn channel(&self) -> &ChannelOwner
fn channel_mut(&mut self) -> &mut ChannelOwner
fn handle_event( &self, _ctx: &Context, method: Str<Method>, params: Map<String, Value>, ) -> Result<(), Error>
fn guid(&self) -> &S<Guid>
fn context(&self) -> Result<Arc<Mutex<Context>>, Error>
Auto Trait Implementations§
impl !Freeze for JsHandle
impl RefUnwindSafe for JsHandle
impl Send for JsHandle
impl Sync for JsHandle
impl Unpin for JsHandle
impl UnwindSafe for JsHandle
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