impl Clone for Handle

This commit is contained in:
Yin Guanhao
2019-12-26 16:14:57 +08:00
committed by Richard Hozák
parent 3f0bca943c
commit 7ea3f06575

View File

@@ -483,6 +483,7 @@ impl<'a, T> Drop for WebView<'a, T> {
/// A thread-safe handle to a [`WebView`] instance. Used to dispatch closures onto its task queue.
///
/// [`WebView`]: struct.WebView.html
#[derive(Clone)]
pub struct Handle<T> {
inner: *mut CWebView,
live: Weak<RwLock<()>>,