Trait javascriptcore::prelude::WeakValueExt
source · [−]pub trait WeakValueExt: 'static {
fn value(&self) -> Option<Value>;
fn connect_cleared<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
}
Expand description
Required Methods
sourcefn connect_cleared<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_cleared<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
This signal is emitted when the JavaScript value is destroyed.