pub struct TrayEventReceiver { /* private fields */ }Expand description
Receiving endpoint for desktop system tray events.
Implementations§
Source§impl TrayEventReceiver
impl TrayEventReceiver
Sourcepub fn try_recv(&self) -> Option<TrayEvent>
pub fn try_recv(&self) -> Option<TrayEvent>
Attempts to read the next pending tray event without blocking.
Sourcepub fn recv_timeout(
&self,
timeout: Duration,
) -> Result<TrayEvent, RecvTimeoutError>
pub fn recv_timeout( &self, timeout: Duration, ) -> Result<TrayEvent, RecvTimeoutError>
Blocks until the next tray event arrives, or times out.
Auto Trait Implementations§
impl !Sync for TrayEventReceiver
impl Forget for TrayEventReceiver
impl Freeze for TrayEventReceiver
impl Move for TrayEventReceiver
impl RefUnwindSafe for TrayEventReceiver
impl Send for TrayEventReceiver
impl Unpin for TrayEventReceiver
impl UnsafeUnpin for TrayEventReceiver
impl UnwindSafe for TrayEventReceiver
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