pub enum WmCtlError {
DesktopWinNotFound,
InvalidAtom(String),
InvalidWinGravity(u32),
InvalidWinPosition(String),
InvalidWinShape(String),
InvalidWinClass(String),
InvalidWinMap(u32),
InvalidWinState(u32),
InvalidWinType(u32),
PropertyNotFound(String),
TaskbarNotFound,
TaskbarReservationNotFound,
}Expand description
WmCtlError defines all the internal errors that libwmctl might return
Variants§
DesktopWinNotFound
InvalidAtom(String)
InvalidWinGravity(u32)
InvalidWinPosition(String)
InvalidWinShape(String)
InvalidWinClass(String)
InvalidWinMap(u32)
InvalidWinState(u32)
InvalidWinType(u32)
PropertyNotFound(String)
TaskbarNotFound
TaskbarReservationNotFound
Trait Implementations§
Source§impl Clone for WmCtlError
impl Clone for WmCtlError
Source§fn clone(&self) -> WmCtlError
fn clone(&self) -> WmCtlError
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 WmCtlError
impl Debug for WmCtlError
Source§impl Display for WmCtlError
impl Display for WmCtlError
Source§impl Error for WmCtlError
impl Error for WmCtlError
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()
Source§impl From<WmCtlError> for ErrorWrapper
impl From<WmCtlError> for ErrorWrapper
Source§fn from(err: WmCtlError) -> ErrorWrapper
fn from(err: WmCtlError) -> ErrorWrapper
Converts to this type from the input type.
Source§impl Hash for WmCtlError
impl Hash for WmCtlError
Source§impl Ord for WmCtlError
impl Ord for WmCtlError
Source§fn cmp(&self, other: &WmCtlError) -> Ordering
fn cmp(&self, other: &WmCtlError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WmCtlError
impl PartialEq for WmCtlError
Source§impl PartialOrd for WmCtlError
impl PartialOrd for WmCtlError
impl Eq for WmCtlError
impl StructuralPartialEq for WmCtlError
Auto Trait Implementations§
impl Freeze for WmCtlError
impl RefUnwindSafe for WmCtlError
impl Send for WmCtlError
impl Sync for WmCtlError
impl Unpin for WmCtlError
impl UnwindSafe for WmCtlError
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