pub enum InitError {
AlreadyInitialized,
Internal,
}
Expand description
An error that might be returned when glfw::init
is called.
Variants§
AlreadyInitialized
Deprecated. Does not occur.
Internal
An internal error occurred when trying to initialize the library.
Trait Implementations§
source§impl Error for InitError
impl Error for InitError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 Ord for InitError
impl Ord for InitError
source§impl PartialEq for InitError
impl PartialEq for InitError
source§impl PartialOrd for InitError
impl PartialOrd for InitError
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 moreimpl Copy for InitError
impl Eq for InitError
impl StructuralPartialEq for InitError
Auto Trait Implementations§
impl RefUnwindSafe for InitError
impl Send for InitError
impl Sync for InitError
impl Unpin for InitError
impl UnwindSafe for InitError
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