pub struct Error { /* private fields */ }Expand description
An error that can occur during window creation or manipulation.
This error type is opaque: you can only get error information from its Display implementation.
Which errors can occur on which operations can greatly vary between platforms. For instance on X11, the connection to the server can be lost, or the X server can send an invalid message, which is not possible on e.g. Windows or macOS.
This is the general Baseview error type.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<HandlerError> for Error
impl From<HandlerError> for Error
Source§fn from(e: HandlerError) -> Self
fn from(e: HandlerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !Send for Error
impl !Sync for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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