[][src]Struct systray::Application

pub struct Application { /* fields omitted */ }

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]

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 set_icon_from_buffer(
    &self,
    buffer: &[u8],
    width: u32,
    height: u32
) -> 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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.