pub enum MediaError {
Unreadable(String),
Undecodable(String),
TooLarge {
width: u32,
height: u32,
},
}Expand description
Why a block has no pixels. Every variant is a placeholder plus alt text outcome, never a panic and never a stall.
Variants§
Unreadable(String)
The file is not there, or is not readable.
Undecodable(String)
Read fine, but no decoder recognised it.
TooLarge
Bigger than MAX_PIXELS. Refused before allocating, so a
pathological or hostile image cannot exhaust memory.
Trait Implementations§
Source§impl Clone for MediaError
impl Clone for MediaError
Source§fn clone(&self) -> MediaError
fn clone(&self) -> MediaError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MediaError
impl Debug for MediaError
Source§impl Display for MediaError
impl Display for MediaError
impl Eq for MediaError
Source§impl PartialEq for MediaError
impl PartialEq for MediaError
impl StructuralPartialEq for MediaError
Auto Trait Implementations§
impl Freeze for MediaError
impl RefUnwindSafe for MediaError
impl Send for MediaError
impl Sync for MediaError
impl Unpin for MediaError
impl UnsafeUnpin for MediaError
impl UnwindSafe for MediaError
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