pub enum PresentarError {
InvalidRefreshRate(u32),
InvalidGridSize(u8),
InvalidPanelWidth(u16),
InvalidPanelHeight(u16),
InvalidLayoutRatio(f32, f32),
DuplicateKeybinding(char, String, String),
InvalidColorFormat(String),
NoPanelsEnabled,
InvalidSparklineHistory(u32),
InvalidProcessColumn(String),
ParseError(String),
}Expand description
Presentar validation errors.
Variants§
InvalidRefreshRate(u32)
Refresh rate is too low (below 16ms for 60 FPS).
InvalidGridSize(u8)
Grid size is out of valid range (2-16).
InvalidPanelWidth(u16)
Panel width is below minimum (10).
InvalidPanelHeight(u16)
Panel height is below minimum (3).
InvalidLayoutRatio(f32, f32)
Layout ratios don’t sum to 1.0.
DuplicateKeybinding(char, String, String)
Same key is bound to multiple actions.
InvalidColorFormat(String)
Color is not in valid #RRGGBB format.
NoPanelsEnabled
At least one panel must be enabled.
InvalidSparklineHistory(u32)
Sparkline history is out of valid range (1-3600 seconds).
InvalidProcessColumn(String)
Process column name is not recognized.
ParseError(String)
YAML parsing failed.
Trait Implementations§
Source§impl Clone for PresentarError
impl Clone for PresentarError
Source§fn clone(&self) -> PresentarError
fn clone(&self) -> PresentarError
Returns a duplicate of the value. Read more
1.0.0 · 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 PresentarError
impl Debug for PresentarError
Source§impl Display for PresentarError
impl Display for PresentarError
Source§impl Error for PresentarError
impl Error for PresentarError
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 PresentarError
impl RefUnwindSafe for PresentarError
impl Send for PresentarError
impl Sync for PresentarError
impl Unpin for PresentarError
impl UnsafeUnpin for PresentarError
impl UnwindSafe for PresentarError
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