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<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.

menu_ids: Arc<Mutex<HashMap<MenuHash, MenuId>>>

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

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Only use the DetachedWindow’s label to represent its hash.

Feeds a slice of this type into the given Hasher. Read more

Only use the DetachedWindow’s label to compare equality.

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.