pub enum WatermarkError {
NoContent,
BothContentTypes,
InvalidImage(String),
InvalidOpacity {
value: f32,
},
InvalidPosition(String),
AddFailed(String),
Operation(String),
}Expand description
Watermark-related errors.
Variants§
NoContent
No content specified.
BothContentTypes
Both text and image specified.
InvalidImage(String)
Invalid image data.
InvalidOpacity
Invalid opacity value.
InvalidPosition(String)
Invalid position.
AddFailed(String)
Failed to add watermark.
Operation(String)
Generic watermark operation error.
Trait Implementations§
Source§impl Debug for WatermarkError
impl Debug for WatermarkError
Source§impl Display for WatermarkError
impl Display for WatermarkError
Source§impl Error for WatermarkError
impl Error for WatermarkError
1.30.0 · 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<String> for WatermarkError
impl From<String> for WatermarkError
Source§impl From<WatermarkError> for Error
impl From<WatermarkError> for Error
Source§fn from(source: WatermarkError) -> Self
fn from(source: WatermarkError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WatermarkError
impl RefUnwindSafe for WatermarkError
impl Send for WatermarkError
impl Sync for WatermarkError
impl Unpin for WatermarkError
impl UnwindSafe for WatermarkError
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