[−][src]Struct systray::Application
Implementations
impl Application
[src]
pub fn new() -> Result<Application, Error>
[src]
pub fn add_menu_item<F, E>(
&mut self,
item_name: &str,
f: F
) -> Result<u32, Error> where
F: FnMut(&mut Application) -> Result<(), E> + Send + Sync + 'static,
E: Error + Send + Sync + 'static,
[src]
&mut self,
item_name: &str,
f: F
) -> Result<u32, Error> where
F: FnMut(&mut Application) -> Result<(), E> + Send + Sync + 'static,
E: Error + Send + Sync + 'static,
pub fn add_menu_separator(&mut self) -> Result<u32, Error>
[src]
pub fn set_icon_from_file(&self, file: &str) -> Result<(), Error>
[src]
pub fn set_icon_from_resource(&self, resource: &str) -> Result<(), Error>
[src]
pub fn shutdown(&self) -> Result<(), Error>
[src]
pub fn set_tooltip(&self, tooltip: &str) -> Result<(), Error>
[src]
pub fn quit(&mut self)
[src]
pub fn wait_for_message(&mut self) -> Result<(), Error>
[src]
Trait Implementations
impl Drop for Application
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Application
impl Send for Application
impl !Sync for Application
impl Unpin for Application
impl !UnwindSafe for Application
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
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>,