pub enum GuiError {
Io(Error),
Json(Error),
SocketBind(String),
ConnectionFailed,
InvalidResponse(String),
ViewNotFound(i64),
InvalidOperation(String),
EventError(String),
}Expand description
Errors that can occur when using Termux GUI
Variants§
Io(Error)
IO error occurred
Json(Error)
JSON serialization/deserialization error
SocketBind(String)
Socket binding failed
ConnectionFailed
Connection to Termux GUI service failed
InvalidResponse(String)
Invalid response from GUI service
ViewNotFound(i64)
View not found
InvalidOperation(String)
Invalid view operation
EventError(String)
Event handling error
Trait Implementations§
Source§impl Error for GuiError
impl Error for GuiError
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()
Auto Trait Implementations§
impl Freeze for GuiError
impl !RefUnwindSafe for GuiError
impl Send for GuiError
impl Sync for GuiError
impl Unpin for GuiError
impl !UnwindSafe for GuiError
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