1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
mod geometry;
pub mod signaling;
pub use self::geometry::{Buffer, Logical, Physical, Point, Raw, Rectangle, Size};
#[derive(Debug)]
pub struct UnmanagedResource;
impl std::fmt::Display for UnmanagedResource {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.write_str("This resource is not managed by Smithay.")
}
}
impl std::error::Error for UnmanagedResource {}
#[derive(Debug)]
pub struct DeadResource;
impl std::fmt::Display for DeadResource {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.write_str("This resource has been destroyed and can no longer be used.")
}
}
impl std::error::Error for DeadResource {}