Struct trayicon::TrayIconBuilder
source ยท pub struct TrayIconBuilder<T>{ /* private fields */ }
Expand description
Tray Icon builder
Implementationsยง
sourceยงimpl<T> TrayIconBuilder<T>
impl<T> TrayIconBuilder<T>
pub fn new() -> TrayIconBuilder<T>
sourcepub fn when<F>(self, f: F) -> Selfwhere
F: FnOnce(Self) -> Self,
pub fn when<F>(self, f: F) -> Selfwhere
F: FnOnce(Self) -> Self,
Conditionally include items, poor mans function composition
pub fn sender(self, cb: impl Fn(&T) + 'static) -> Self
pub fn tooltip(self, tooltip: &str) -> Self
pub fn on_click(self, id: T) -> Self
pub fn on_double_click(self, id: T) -> Self
pub fn on_right_click(self, id: T) -> Self
pub fn icon(self, icon: Icon) -> Self
pub fn icon_from_buffer(self, buffer: &'static [u8]) -> Self
pub fn build(self) -> Result<TrayIcon<T>, Error>
Trait Implementationsยง
sourceยงimpl<T> Clone for TrayIconBuilder<T>
impl<T> Clone for TrayIconBuilder<T>
sourceยงfn clone(&self) -> TrayIconBuilder<T>
fn clone(&self) -> TrayIconBuilder<T>
Returns a copy of the value. Read more
1.0.0 ยท sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementationsยง
impl<T> Freeze for TrayIconBuilder<T>where
T: Freeze,
impl<T> !RefUnwindSafe for TrayIconBuilder<T>
impl<T> !Send for TrayIconBuilder<T>
impl<T> !Sync for TrayIconBuilder<T>
impl<T> Unpin for TrayIconBuilder<T>where
T: Unpin,
impl<T> !UnwindSafe for TrayIconBuilder<T>
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