Struct tauri_runtime::window::DetachedWindow
source · [−]pub struct DetachedWindow<R: Runtime> {
pub label: String,
pub dispatcher: R::Dispatcher,
pub menu_ids: Arc<Mutex<HashMap<MenuHash, MenuId>>>,
pub js_event_listeners: Arc<Mutex<HashMap<JsEventListenerKey, HashSet<u64>>>>,
}
Expand description
A webview window that is not yet managed by Tauri.
Fields
label: String
Name of the window
dispatcher: R::Dispatcher
The Dispatch
associated with the window.
Maps runtime id to a string menu id.
js_event_listeners: Arc<Mutex<HashMap<JsEventListenerKey, HashSet<u64>>>>
A HashMap mapping JS event names with associated listener ids.
Trait Implementations
sourceimpl<R: Runtime> Clone for DetachedWindow<R>
impl<R: Runtime> Clone for DetachedWindow<R>
sourceimpl<R: Debug + Runtime> Debug for DetachedWindow<R> where
R::Dispatcher: Debug,
impl<R: Debug + Runtime> Debug for DetachedWindow<R> where
R::Dispatcher: Debug,
sourceimpl<R: Runtime> Hash for DetachedWindow<R>
impl<R: Runtime> Hash for DetachedWindow<R>
sourceimpl<R: Runtime> PartialEq<DetachedWindow<R>> for DetachedWindow<R>
impl<R: Runtime> PartialEq<DetachedWindow<R>> for DetachedWindow<R>
impl<R: Runtime> Eq for DetachedWindow<R>
Auto Trait Implementations
impl<R> RefUnwindSafe for DetachedWindow<R> where
<R as Runtime>::Dispatcher: RefUnwindSafe,
impl<R> Send for DetachedWindow<R>
impl<R> Sync for DetachedWindow<R> where
<R as Runtime>::Dispatcher: Sync,
impl<R> Unpin for DetachedWindow<R> where
<R as Runtime>::Dispatcher: Unpin,
impl<R> UnwindSafe for DetachedWindow<R> where
<R as Runtime>::Dispatcher: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more