#[non_exhaustive]pub struct Error(pub u32);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 NotConstructed: Self
pub const NotConstructed: Self
Surface was not fully constructed
Sourcepub const AlreadyConstructed: Self
pub const AlreadyConstructed: Self
Surface was already constructed
Sourcepub const UnconfiguredBuffer: Self
pub const UnconfiguredBuffer: Self
Attaching a buffer to an unconfigured surface
Sourcepub const InvalidSerial: Self
pub const InvalidSerial: Self
Invalid serial number when acking a configure event
Sourcepub const InvalidSize: Self
pub const InvalidSize: Self
Width or height was zero or negative
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