Skip to main content

window_observer/platform_impl/windows/
error.rs

1/// Represents errors that can occur in the Windows-specific implementation.
2#[derive(Debug, thiserror::Error)]
3pub enum WindowsError {
4    /// An IO error occurred.
5    #[error("IO error: {0}")]
6    IOError(#[from] std::io::Error),
7    /// The event handling worker has been stopped unexpectedly.
8    #[error("Event worker stopped unexpectedly: {0}")]
9    WorkerStopped(#[from] tokio::sync::oneshot::error::RecvError),
10    /// An error occurred from underlying implementation of [`window_getter`].
11    #[error("Window getter error: {0}")]
12    WindowGetterError(#[from] window_getter::platform_impl::PlatformError),
13}