1
2
3
4
5
6
7
8
9
10
11
/// An error that may occur when creating objects using a global.
#[derive(Debug, thiserror::Error)]
pub enum GlobalError {
    /// A compositor global was not available
    #[error("the '{0}' global was not available")]
    MissingGlobal(&'static str),

    /// A compositor global was available, but did not support the given minimum version
    #[error("the '{name}' global does not support interface version {required} (using version {available})")]
    InvalidVersion { name: &'static str, required: u32, available: u32 },
}