#[non_exhaustive]pub struct Error(pub u32);Expand description
wl_surface error values
These errors can be emitted in response to wl_surface requests.
Tuple Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.0: u32Implementations§
Source§impl Error
impl Error
Sourcepub const InvalidScale: Self
pub const InvalidScale: Self
buffer scale value is invalid
Sourcepub const InvalidTransform: Self
pub const InvalidTransform: Self
buffer transform value is invalid
Sourcepub const InvalidSize: Self
pub const InvalidSize: Self
buffer size is invalid
Sourcepub const InvalidOffset: Self
pub const InvalidOffset: Self
buffer offset is invalid
Sourcepub const DefunctRoleObject: Self
pub const DefunctRoleObject: Self
surface was destroyed before its role object
Trait Implementations§
Source§impl Ord for Error
impl Ord for Error
Source§impl PartialOrd for Error
impl PartialOrd for Error
impl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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