Enum leechbar::BarErrorKind [−][src]
pub enum BarErrorKind { ConnectionRefused, NoPrimaryOutput, OutputNotFound, }
Different types of bar creation errors.
These are all the different errors that can occur during the creation of the bar.
Variants
ConnectionRefused
Unable to connect to the X.Org server. Please make sure you are running X.Org and not Wayland.
NoPrimaryOutput
No primary output could be found. This is most likely because you have only one output and it is not set as primary.
You can set the primary
flag on your output using xrandr --output <OUTPUT> --primary
.
If this does not work, you can set the output directly using
output
.
OutputNotFound
The specified output could not be found. Please make sure the correct name is used. You can
find out the name of your outputs using xrandr
.
Trait Implementations
impl Clone for BarErrorKind
[src]
impl Clone for BarErrorKind
fn clone(&self) -> BarErrorKind
[src]
fn clone(&self) -> BarErrorKind
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for BarErrorKind
[src]
impl Copy for BarErrorKind
impl Debug for BarErrorKind
[src]
impl Debug for BarErrorKind
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for BarErrorKind
[src]
impl Eq for BarErrorKind
impl Hash for BarErrorKind
[src]
impl Hash for BarErrorKind
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Ord for BarErrorKind
[src]
impl Ord for BarErrorKind
fn cmp(&self, other: &BarErrorKind) -> Ordering
[src]
fn cmp(&self, other: &BarErrorKind) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialEq for BarErrorKind
[src]
impl PartialEq for BarErrorKind
fn eq(&self, other: &BarErrorKind) -> bool
[src]
fn eq(&self, other: &BarErrorKind) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl PartialOrd for BarErrorKind
[src]
impl PartialOrd for BarErrorKind
fn partial_cmp(&self, other: &BarErrorKind) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &BarErrorKind) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
fn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl From<BarErrorKind> for BarError
[src]
impl From<BarErrorKind> for BarError
fn from(kind: BarErrorKind) -> BarError
[src]
fn from(kind: BarErrorKind) -> BarError
Performs the conversion.
Auto Trait Implementations
impl Send for BarErrorKind
impl Send for BarErrorKind
impl Sync for BarErrorKind
impl Sync for BarErrorKind