Struct tauri::App [−][src]
pub struct App<P: Params = Args<String, String, String, String, EmbeddedAssets, Wry>> { /* fields omitted */ }
Expand description
The instance of the currently running application.
This type implements Manager
which allows for manipulation of global application items.
Implementations
impl<P: Params> App<P>
[src]
impl<P: Params> App<P>
[src]pub fn create_window<F>(
&mut self,
label: P::Label,
url: WindowUrl,
setup: F
) -> Result<()> where
F: FnOnce(<<P::Runtime as Runtime>::Dispatcher as Dispatch>::WindowBuilder, WebviewAttributes) -> (<<P::Runtime as Runtime>::Dispatcher as Dispatch>::WindowBuilder, WebviewAttributes),
[src]
pub fn create_window<F>(
&mut self,
label: P::Label,
url: WindowUrl,
setup: F
) -> Result<()> where
F: FnOnce(<<P::Runtime as Runtime>::Dispatcher as Dispatch>::WindowBuilder, WebviewAttributes) -> (<<P::Runtime as Runtime>::Dispatcher as Dispatch>::WindowBuilder, WebviewAttributes),
[src]Creates a new webview window.
Trait Implementations
impl<P: Params> Manager<P> for App<P>
[src]
impl<P: Params> Manager<P> for App<P>
[src]fn emit_all<E: ?Sized, S>(&self, event: &E, payload: S) -> Result<()> where
P::Event: Borrow<E>,
E: TagRef<P::Event>,
S: Serialize + Clone,
[src]
fn emit_all<E: ?Sized, S>(&self, event: &E, payload: S) -> Result<()> where
P::Event: Borrow<E>,
E: TagRef<P::Event>,
S: Serialize + Clone,
[src]Emits a event to all windows.
fn emit_to<E: ?Sized, L: ?Sized, S: Serialize + Clone>(
&self,
label: &L,
event: &E,
payload: S
) -> Result<()> where
P::Label: Borrow<L>,
P::Event: Borrow<E>,
L: TagRef<P::Label>,
E: TagRef<P::Event>,
[src]
fn emit_to<E: ?Sized, L: ?Sized, S: Serialize + Clone>(
&self,
label: &L,
event: &E,
payload: S
) -> Result<()> where
P::Label: Borrow<L>,
P::Event: Borrow<E>,
L: TagRef<P::Label>,
E: TagRef<P::Event>,
[src]Emits an event to a window with the specified label.
fn listen_global<E: Into<P::Event>, F>(
&self,
event: E,
handler: F
) -> EventHandler where
F: Fn(Event) + Send + 'static,
[src]
fn listen_global<E: Into<P::Event>, F>(
&self,
event: E,
handler: F
) -> EventHandler where
F: Fn(Event) + Send + 'static,
[src]Listen to a global event.
fn once_global<E: Into<P::Event>, F>(
&self,
event: E,
handler: F
) -> EventHandler where
F: Fn(Event) + Send + 'static,
[src]
fn once_global<E: Into<P::Event>, F>(
&self,
event: E,
handler: F
) -> EventHandler where
F: Fn(Event) + Send + 'static,
[src]Listen to a global event only once.
fn trigger_global<E: ?Sized>(&self, event: &E, data: Option<String>) where
P::Event: Borrow<E>,
E: TagRef<P::Event>,
[src]
fn trigger_global<E: ?Sized>(&self, event: &E, data: Option<String>) where
P::Event: Borrow<E>,
E: TagRef<P::Event>,
[src]Trigger a global event.
fn get_window<L: ?Sized>(&self, label: &L) -> Option<Window<P>> where
P::Label: Borrow<L>,
L: TagRef<P::Label>,
[src]
fn get_window<L: ?Sized>(&self, label: &L) -> Option<Window<P>> where
P::Label: Borrow<L>,
L: TagRef<P::Label>,
[src]Fetch a single window from the manager.
Auto Trait Implementations
impl<P = Args<String, String, String, String, EmbeddedAssets, Wry>> !RefUnwindSafe for App<P>
impl<P> Send for App<P> where
<P as Params>::Runtime: Send,
<P as Params>::Runtime: Send,
impl<P> Sync for App<P> where
<P as Params>::Runtime: Sync,
<P as Params>::Runtime: Sync,
impl<P> Unpin for App<P> where
<P as Params>::Runtime: Unpin,
<P as Params>::Runtime: Unpin,
impl<P = Args<String, String, String, String, EmbeddedAssets, Wry>> !UnwindSafe for App<P>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,