Enum DisplayParsingError
#[non_exhaustive]pub enum DisplayParsingError {
DisplayNotSet,
MalformedValue(Box<str>),
NotUnicode,
Unknown,
}
Expand description
An error that occurred while parsing the $DISPLAY
environment variable
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DisplayNotSet
No explicit display was provided and the $DISPLAY
environment variable is not set.
MalformedValue(Box<str>)
The given value could not be parsed. The input to parsing is provided.
NotUnicode
The value of $DISPLAY
is not valid unicode
Unknown
An unknown error occurred during display parsing.
This is XCB_CONN_CLOSED_PARSE_ERR
.
Trait Implementations§
§impl Clone for DisplayParsingError
impl Clone for DisplayParsingError
§fn clone(&self) -> DisplayParsingError
fn clone(&self) -> DisplayParsingError
Returns a copy 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 more§impl Debug for DisplayParsingError
impl Debug for DisplayParsingError
§impl Display for DisplayParsingError
impl Display for DisplayParsingError
§impl Error for DisplayParsingError
impl Error for DisplayParsingError
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()
§impl From<DisplayParsingError> for ConnectError
impl From<DisplayParsingError> for ConnectError
§fn from(err: DisplayParsingError) -> ConnectError
fn from(err: DisplayParsingError) -> ConnectError
Converts to this type from the input type.
§impl PartialEq for DisplayParsingError
impl PartialEq for DisplayParsingError
impl Eq for DisplayParsingError
impl StructuralPartialEq for DisplayParsingError
Auto Trait Implementations§
impl Freeze for DisplayParsingError
impl RefUnwindSafe for DisplayParsingError
impl Send for DisplayParsingError
impl Sync for DisplayParsingError
impl Unpin for DisplayParsingError
impl UnwindSafe for DisplayParsingError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)