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<InitError> for InitError
impl PartialEq<InitError> for InitError
source§impl PartialOrd<InitError> for InitError
impl PartialOrd<InitError> 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 more