#[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§
source§impl Clone for DisplayParsingError
impl Clone for DisplayParsingError
source§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 moresource§impl Debug for DisplayParsingError
impl Debug for DisplayParsingError
source§impl Display for DisplayParsingError
impl Display for DisplayParsingError
source§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)>
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<DisplayParsingError> for ConnectError
impl From<DisplayParsingError> for ConnectError
source§fn from(err: DisplayParsingError) -> Self
fn from(err: DisplayParsingError) -> Self
Converts to this type from the input type.
source§impl PartialEq for DisplayParsingError
impl PartialEq for DisplayParsingError
source§fn eq(&self, other: &DisplayParsingError) -> bool
fn eq(&self, other: &DisplayParsingError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DisplayParsingError
impl StructuralEq for DisplayParsingError
impl StructuralPartialEq for DisplayParsingError
Auto Trait Implementations§
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