Enum penrose_ui::Error
source · pub enum Error {
InvalidHexColor {
code: String,
},
NoFallbackFontForChar(char),
NulError(NulError),
ParseInt(ParseIntError),
Penrose(Error),
UnableToAllocateColor,
UnableToOpenFont(String),
UnableToOpenFontPattern,
UnableToParseFontPattern(String),
UnintialisedSurface {
id: Xid,
},
}
Expand description
Error variants from penrose_ui library.
Variants§
InvalidHexColor
Creation of a Color
from a string hex code was invalid
NoFallbackFontForChar(char)
The specified character can not be rendered by any font on this system
NulError(NulError)
A string being passed to underlying C APIs contained an internal null byte
ParseInt(ParseIntError)
Unable to parse an integer from a provided string.
Penrose(Error)
An error was returned from the XConn
when interacting with the X server
UnableToAllocateColor
Unable to allocate a requested color
UnableToOpenFont(String)
Unable to open a requested font
UnableToOpenFontPattern
Unable to open a font using an Xft font pattern
UnableToParseFontPattern(String)
Unable to parse an Xft font pattern
UnintialisedSurface
An attempt was made to work with a surface for a window that was not initialised
by the Draw
instance being used.
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ParseIntError> for Error
impl From<ParseIntError> for Error
source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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