pub enum ChartError {
Show 20 variants
Gpu(RequestDeviceError),
Surface(SurfaceError),
DeviceLost,
OutOfMemory,
InvalidData(String),
EmptyData,
DataRange {
message: String,
},
ShaderCompilation(String),
TextureCreation(String),
BufferCreation(String),
InvalidConfig(String),
UnsupportedFeature(String),
Layer(String),
LayerNotFound(String),
TextRendering(String),
FontLoading(String),
Io(Error),
Serialization(Error),
Internal(String),
NotImplemented(String),
}Expand description
Main error type for FChart operations
Variants§
Gpu(RequestDeviceError)
GPU/Rendering related errors
Surface(SurfaceError)
DeviceLost
OutOfMemory
InvalidData(String)
Data related errors
EmptyData
DataRange
ShaderCompilation(String)
Rendering errors
TextureCreation(String)
BufferCreation(String)
InvalidConfig(String)
Configuration errors
UnsupportedFeature(String)
Layer(String)
Layer system errors
LayerNotFound(String)
TextRendering(String)
Text rendering errors
FontLoading(String)
Io(Error)
I/O and format errors
Serialization(Error)
Internal(String)
Generic errors
NotImplemented(String)
Implementations§
Source§impl ChartError
impl ChartError
Sourcepub fn data_range(message: impl Into<String>) -> Self
pub fn data_range(message: impl Into<String>) -> Self
Create a new data range error
Sourcepub fn invalid_config(message: impl Into<String>) -> Self
pub fn invalid_config(message: impl Into<String>) -> Self
Create a new invalid configuration error
Trait Implementations§
Source§impl Debug for ChartError
impl Debug for ChartError
Source§impl Display for ChartError
impl Display for ChartError
Source§impl Error for ChartError
impl Error for ChartError
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<BufferAsyncError> for ChartError
impl From<BufferAsyncError> for ChartError
Source§fn from(_: BufferAsyncError) -> Self
fn from(_: BufferAsyncError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ChartError
impl From<Error> for ChartError
Source§impl From<Error> for ChartError
impl From<Error> for ChartError
Source§impl From<RequestDeviceError> for ChartError
impl From<RequestDeviceError> for ChartError
Source§fn from(source: RequestDeviceError) -> Self
fn from(source: RequestDeviceError) -> Self
Converts to this type from the input type.
Source§impl From<SurfaceError> for ChartError
impl From<SurfaceError> for ChartError
Source§fn from(source: SurfaceError) -> Self
fn from(source: SurfaceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ChartError
impl !RefUnwindSafe for ChartError
impl Send for ChartError
impl Sync for ChartError
impl Unpin for ChartError
impl UnsafeUnpin for ChartError
impl !UnwindSafe for ChartError
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