pub enum RenderError {
Show 24 variants
InvalidDimensions,
InvalidBufferSize {
expected: usize,
actual: usize,
},
InvalidPixmap,
NoBackendAvailable,
UnsupportedBackend(&'static str),
BackendInitFailed(String),
BackendError(String),
PipelineError(String),
ShapingError(String),
DrawingError(String),
InvalidDrawCommand(String),
EffectError(String),
CompositingError(String),
FontError(String),
GpuError(String),
ResourceLimitExceeded(String),
InvalidScript(String),
ParseError(String),
InvalidInput(String),
CoreError(CoreError),
InitializationError(String),
IOError(String),
InvalidState(String),
UnsupportedOperation(String),
}Expand description
Rendering error types
Variants§
InvalidDimensions
Invalid dimensions provided
InvalidBufferSize
Invalid buffer size
InvalidPixmap
Invalid pixmap creation
NoBackendAvailable
No backend available
UnsupportedBackend(&'static str)
Unsupported backend
BackendInitFailed(String)
Backend initialization failed
BackendError(String)
Generic backend error
PipelineError(String)
Pipeline error
ShapingError(String)
Shaping error
DrawingError(String)
Drawing error
InvalidDrawCommand(String)
Invalid draw command
EffectError(String)
Effect error
CompositingError(String)
Compositing error
FontError(String)
Font error
GpuError(String)
GPU error
ResourceLimitExceeded(String)
Resource limit exceeded
InvalidScript(String)
Invalid script
ParseError(String)
Parse error
InvalidInput(String)
Invalid input
CoreError(CoreError)
Core error from ass-core
InitializationError(String)
Initialization error
IOError(String)
IO error
InvalidState(String)
Invalid state
UnsupportedOperation(String)
Unsupported operation
Implementations§
Source§impl RenderError
impl RenderError
Sourcepub fn is_recoverable(&self) -> bool
pub fn is_recoverable(&self) -> bool
Check if error is recoverable
Sourcepub fn is_resource_error(&self) -> bool
pub fn is_resource_error(&self) -> bool
Check if error indicates missing resources
Trait Implementations§
Source§impl Debug for RenderError
impl Debug for RenderError
Source§impl Display for RenderError
impl Display for RenderError
Source§impl Error for RenderError
impl Error for RenderError
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 RenderError
impl RefUnwindSafe for RenderError
impl Send for RenderError
impl Sync for RenderError
impl Unpin for RenderError
impl UnsafeUnpin for RenderError
impl UnwindSafe for RenderError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more