pub struct TrayEventChannel { /* private fields */ }Expand description
Thread-safe reactive event channel for desktop system tray interactions.
Implementations§
Source§impl TrayEventChannel
impl TrayEventChannel
Sourcepub fn new() -> (Self, TrayEventReceiver)
pub fn new() -> (Self, TrayEventReceiver)
Creates a new sender and receiver pair.
Sourcepub fn as_sink(&self) -> TrayEventSink
pub fn as_sink(&self) -> TrayEventSink
Creates an adapter closure suitable for passing as a TrayEventSink.
Trait Implementations§
Source§impl Clone for TrayEventChannel
impl Clone for TrayEventChannel
Auto Trait Implementations§
impl Forget for TrayEventChannel
impl Freeze for TrayEventChannel
impl Move for TrayEventChannel
impl RefUnwindSafe for TrayEventChannel
impl Send for TrayEventChannel
impl Sync for TrayEventChannel
impl Unpin for TrayEventChannel
impl UnsafeUnpin for TrayEventChannel
impl UnwindSafe for TrayEventChannel
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