pub enum ImGuiError {
ContextCreation {
reason: String,
},
ContextAlreadyActive,
InvalidOperation {
operation: String,
},
ResourceAllocation {
resource: String,
},
FontLoading {
reason: String,
},
TextureOperation {
operation: String,
},
Renderer(Box<dyn Error + Send + Sync>),
IoOperation {
operation: String,
},
Configuration {
setting: String,
},
Generic {
message: String,
},
}Expand description
Errors that can occur in Dear ImGui operations
Variants§
ContextCreation
Context creation failed
ContextAlreadyActive
Context is already active
InvalidOperation
Invalid operation attempted
ResourceAllocation
Resource allocation failed
FontLoading
Font loading error
TextureOperation
Texture operation error
Renderer(Box<dyn Error + Send + Sync>)
Renderer error (from backends)
IoOperation
IO operation error
Configuration
Configuration error
Generic
Generic error with custom message
Implementations§
Source§impl ImGuiError
impl ImGuiError
Sourcepub fn context_creation(reason: impl Into<String>) -> Self
pub fn context_creation(reason: impl Into<String>) -> Self
Create a context creation error
Sourcepub fn invalid_operation(operation: impl Into<String>) -> Self
pub fn invalid_operation(operation: impl Into<String>) -> Self
Create an invalid operation error
Sourcepub fn resource_allocation(resource: impl Into<String>) -> Self
pub fn resource_allocation(resource: impl Into<String>) -> Self
Create a resource allocation error
Sourcepub fn font_loading(reason: impl Into<String>) -> Self
pub fn font_loading(reason: impl Into<String>) -> Self
Create a font loading error
Sourcepub fn texture_operation(operation: impl Into<String>) -> Self
pub fn texture_operation(operation: impl Into<String>) -> Self
Create a texture operation error
Sourcepub fn io_operation(operation: impl Into<String>) -> Self
pub fn io_operation(operation: impl Into<String>) -> Self
Create an IO operation error
Sourcepub fn configuration(setting: impl Into<String>) -> Self
pub fn configuration(setting: impl Into<String>) -> Self
Create a configuration error
Trait Implementations§
Source§impl Debug for ImGuiError
impl Debug for ImGuiError
Source§impl Display for ImGuiError
impl Display for ImGuiError
Source§impl Error for ImGuiError
impl Error for ImGuiError
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 ImGuiError
impl !RefUnwindSafe for ImGuiError
impl Send for ImGuiError
impl Sync for ImGuiError
impl Unpin for ImGuiError
impl !UnwindSafe for ImGuiError
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