Struct tauri_runtime::window::DetachedWindow
source · pub struct DetachedWindow<T: UserEvent, R: Runtime<T>> {
pub label: String,
pub dispatcher: R::Dispatcher,
pub menu_ids: Arc<Mutex<HashMap<MenuHash, MenuId>>>,
pub js_event_listeners: Arc<Mutex<HashMap<JsEventListenerKey, HashSet<u32>>>>,
}
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<u32>>>>
A HashMap mapping JS event names with associated listener ids.
Trait Implementations§
source§impl<T: Debug + UserEvent, R: Debug + Runtime<T>> Debug for DetachedWindow<T, R>where
R::Dispatcher: Debug,
impl<T: Debug + UserEvent, R: Debug + Runtime<T>> Debug for DetachedWindow<T, R>where
R::Dispatcher: Debug,
impl<T: UserEvent, R: Runtime<T>> Eq for DetachedWindow<T, R>
Auto Trait Implementations§
impl<T, R> Freeze for DetachedWindow<T, R>
impl<T, R> RefUnwindSafe for DetachedWindow<T, R>
impl<T, R> Send for DetachedWindow<T, R>
impl<T, R> Sync for DetachedWindow<T, R>
impl<T, R> Unpin for DetachedWindow<T, R>
impl<T, R> UnwindSafe for DetachedWindow<T, R>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.