Enum wayland_protocols::viewporter::client::wp_viewport::Error [−][src]
#[repr(u32)]
#[non_exhaustive]
pub enum Error {
BadValue,
BadSize,
OutOfBuffer,
NoSurface,
}
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BadValue
negative or zero values in width or height
BadSize
destination size is not integer
OutOfBuffer
source rectangle extends outside of the content area
NoSurface
the wl_surface was destroyed
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more