pub enum WindLayerError {
Empty {
width: u32,
height: u32,
},
Size {
width: u32,
height: u32,
expected: usize,
found: usize,
},
Hal(HalError),
}Expand description
Why a wind layer could not be uploaded.
Variants§
Empty
A layer with a zero dimension.
Size
A layer whose bytes are not four per texel of the grid it came with.
Fields
Hal(HalError)
The seam refused the upload.
Trait Implementations§
Source§impl Debug for WindLayerError
impl Debug for WindLayerError
Source§impl Display for WindLayerError
impl Display for WindLayerError
Source§impl Error for WindLayerError
impl Error for WindLayerError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Forget for WindLayerError
impl Freeze for WindLayerError
impl RefUnwindSafe for WindLayerError
impl Send for WindLayerError
impl Sync for WindLayerError
impl Unpin for WindLayerError
impl UnsafeUnpin for WindLayerError
impl UnwindSafe for WindLayerError
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