pub struct TauriTrayService<R: Runtime> { /* private fields */ }Expand description
A TrayService backed by a running Tauri tray icon.
Generic over the runtime so it is not welded to Wry — the mock runtime used in
tests satisfies the same bound, which is what makes the adapter testable (G11).
Implementations§
Trait Implementations§
Source§impl<R: Runtime> Debug for TauriTrayService<R>
impl<R: Runtime> Debug for TauriTrayService<R>
Source§impl<R: Runtime> TrayService for TauriTrayService<R>
impl<R: Runtime> TrayService for TauriTrayService<R>
Source§fn set_title<'life0, 'life1, 'async_trait>(
&'life0 self,
title: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn set_title<'life0, 'life1, 'async_trait>(
&'life0 self,
title: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Change the tray tooltip — the text shown on hover.
Source§fn set_badge<'life0, 'async_trait>(
&'life0 self,
badge: TrayBadge,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_badge<'life0, 'async_trait>(
&'life0 self,
badge: TrayBadge,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Replace the badge on the tray icon.
Replace the menu. Items are shown in the order given. Read more
Auto Trait Implementations§
impl<R> !Freeze for TauriTrayService<R>
impl<R> !RefUnwindSafe for TauriTrayService<R>
impl<R> !UnwindSafe for TauriTrayService<R>
impl<R> Send for TauriTrayService<R>
impl<R> Sync for TauriTrayService<R>
impl<R> Unpin for TauriTrayService<R>
impl<R> UnsafeUnpin for TauriTrayService<R>where
AppHandle<R>: UnsafeUnpin,
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