pub enum RosaceError {
NotFound {
resource: &'static str,
},
InvalidState(String),
LayoutError(String),
Internal(String),
}Expand description
Errors that can arise within the ROSACE framework.
Variants§
NotFound
A required resource could not be located.
InvalidState(String)
The system is in an unexpected or inconsistent state.
LayoutError(String)
A layout computation failed or produced an invalid result.
Internal(String)
An unexpected internal error occurred.
Implementations§
Trait Implementations§
Source§impl Debug for RosaceError
impl Debug for RosaceError
Source§impl Display for RosaceError
impl Display for RosaceError
Source§impl Error for RosaceError
impl Error for RosaceError
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 RosaceError
impl RefUnwindSafe for RosaceError
impl Send for RosaceError
impl Sync for RosaceError
impl Unpin for RosaceError
impl UnsafeUnpin for RosaceError
impl UnwindSafe for RosaceError
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