2017-09-22 08:46:00 +00:00
|
|
|
//! Various utilities functions and types
|
|
|
|
|
|
|
|
mod rectangle;
|
|
|
|
|
|
|
|
pub use self::rectangle::Rectangle;
|
2021-06-09 20:46:09 +00:00
|
|
|
|
|
|
|
/// This resource is not managed by Smithay
|
|
|
|
#[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 {}
|