Struct tauri::App [−][src]
pub struct App<P: Params> { /* fields omitted */ }
A handle to the currently running application.
This type implements Manager
which allows for manipulation of global application items.
Trait Implementations
impl<P: Params> Manager<P> for App<P>
[src]
fn config(&self) -> &Config
[src]
fn emit_all<S: Serialize + Clone>(
&self,
event: M::Event,
payload: Option<S>
) -> Result<()>
[src]
&self,
event: M::Event,
payload: Option<S>
) -> Result<()>
fn emit_to<S: Serialize + Clone>(
&self,
label: &M::Label,
event: M::Event,
payload: Option<S>
) -> Result<()>
[src]
&self,
label: &M::Label,
event: M::Event,
payload: Option<S>
) -> Result<()>
fn create_window(&mut self, pending: PendingWindow<M>) -> Result<Window<M>>
[src]
fn listen_global<F>(&self, event: M::Event, handler: F) -> EventHandler where
F: Fn(Event) + Send + 'static,
[src]
F: Fn(Event) + Send + 'static,
fn once_global<F>(&self, event: M::Event, handler: F) -> EventHandler where
F: Fn(Event) + Send + 'static,
[src]
F: Fn(Event) + Send + 'static,
fn trigger_global(&self, event: M::Event, data: Option<String>)
[src]
fn unlisten(&self, handler_id: EventHandler)
[src]
fn get_window(&self, label: &M::Label) -> Option<Window<M>>
[src]
fn windows(&self) -> HashMap<M::Label, Window<M>>
[src]
Auto Trait Implementations
impl<P> !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> !UnwindSafe for App<P>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,