pub struct PixelFlowError { /* private fields */ }Expand description
Structured error value used by public PixelFlow APIs.
Implementations§
Source§impl PixelFlowError
impl PixelFlowError
Sourcepub fn new(
category: ErrorCategory,
code: ErrorCode,
message: impl Into<String>,
) -> Self
pub fn new( category: ErrorCategory, code: ErrorCode, message: impl Into<String>, ) -> Self
Creates a structured error with stable category/code and human message.
Sourcepub const fn category(&self) -> ErrorCategory
pub const fn category(&self) -> ErrorCategory
Returns high-level error category.
Trait Implementations§
Source§impl Debug for PixelFlowError
impl Debug for PixelFlowError
Source§impl Display for PixelFlowError
impl Display for PixelFlowError
Source§impl Error for PixelFlowError
impl Error for PixelFlowError
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()
Auto Trait Implementations§
impl Freeze for PixelFlowError
impl RefUnwindSafe for PixelFlowError
impl Send for PixelFlowError
impl Sync for PixelFlowError
impl Unpin for PixelFlowError
impl UnsafeUnpin for PixelFlowError
impl UnwindSafe for PixelFlowError
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