pub enum WriteError {
EncoderUnavailable(i32),
Encoder(i32),
Unsupported(&'static str),
Invalid(&'static str),
Charge(ChargeError),
Decode(DecodeError),
Resize(SaveError<ChargeError>),
Parse(ParseError),
Save(SaveError),
}Expand description
Errors leave the installed object data unchanged.
Variants§
This build does not include the optional encoders.
Encoder(i32)
A vendored encoder refused a checked request; no bytes are installed.
Unsupported(&'static str)
A named Tier U refusal.
Invalid(&'static str)
Invalid image storage or object fields.
Charge(ChargeError)
Bounds, allocation or work refusal.
Decode(DecodeError)
Platform padding/layout refusal.
Resize(SaveError<ChargeError>)
Pillow resize refusal.
Parse(ParseError)
Object read failure.
Save(SaveError)
Object re-save failure.
Trait Implementations§
Source§impl Debug for WriteError
impl Debug for WriteError
Source§impl Display for WriteError
impl Display for WriteError
Source§impl Error for WriteError
impl Error for WriteError
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()
Source§impl From<ChargeError> for WriteError
impl From<ChargeError> for WriteError
Source§fn from(source: ChargeError) -> Self
fn from(source: ChargeError) -> Self
Converts to this type from the input type.
Source§impl From<DecodeError> for WriteError
impl From<DecodeError> for WriteError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for WriteError
impl From<ParseError> for WriteError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<SaveError<ChargeError>> for WriteError
impl From<SaveError<ChargeError>> for WriteError
Source§fn from(source: SaveError<ChargeError>) -> Self
fn from(source: SaveError<ChargeError>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for WriteError
impl !RefUnwindSafe for WriteError
impl !UnwindSafe for WriteError
impl Forget for WriteError
impl Move for WriteError
impl Send for WriteError
impl Sync for WriteError
impl Unpin for WriteError
impl UnsafeUnpin for WriteError
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