#[non_exhaustive]pub enum EvalError {
NoResponse,
ResponseTooLarge(c_ulong),
Io(Error),
BadResponse {
window: Window,
atom: Atom,
typ: Atom,
format: u8,
},
X11(Error),
}Expand description
Error during sending form for evaluation.
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.
NoResponse
Got empty response to non-async request.
Note that this is different than the response data being empty. The
data, what crate::Client::eval returns in Ok variant, may be empty
and that’s not considered an error.
ResponseTooLarge(c_ulong)
Response too large to handle. This can only happen on systems where
usize is smaller than 64-bit.
Io(Error)
An I/O error during communication with the Sawfish server.
BadResponse
Available on crate feature
experimental-xcb only.Invalid format of the window’s response property.
Fields
§
typ: AtomThe actual type of the response property (an atom), see
x::GetPropertyReply::type.
§
format: u8The actual format of the response property, see
x::GetPropertyReply::format.
X11(Error)
Available on crate feature
experimental-xcb only.X11 error during communication with Sawfish server.
Trait Implementations§
Source§impl Error for EvalError
impl Error for EvalError
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<ProtocolError> for EvalError
impl From<ProtocolError> for EvalError
Source§fn from(value: ProtocolError) -> Self
fn from(value: ProtocolError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EvalError
impl !RefUnwindSafe for EvalError
impl Send for EvalError
impl Sync for EvalError
impl Unpin for EvalError
impl !UnwindSafe for EvalError
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