pub enum RustmotionError {
Show 87 variants
Generic(String),
FileRead {
path: String,
source: Error,
},
JsonParse {
source: Error,
},
HtmlParse(String),
ImageLoad {
path: String,
reason: String,
},
ImageDecode {
path: String,
},
SvgMissingSrc,
SvgLoad {
path: String,
reason: String,
},
SvgParse {
reason: String,
},
PixmapCreation {
target: String,
},
InvalidIconFormat {
icon: String,
},
IconFetch {
icon: String,
reason: String,
},
IconParse {
icon: String,
reason: String,
},
SkiaImageCreation {
target: String,
},
GifOpen {
path: String,
reason: String,
},
GifDecode {
path: String,
reason: String,
},
QrCodeGeneration {
reason: String,
},
FontNotFound,
FontSourceAndPathConflict {
family: String,
},
FontMissingPath {
family: String,
},
GoogleFontsFetch {
family: String,
url: String,
reason: String,
cache_hint: String,
},
GoogleFontsNoUrls {
family: String,
},
GoogleFontsTtfFetch {
family: String,
weight: u16,
reason: String,
},
IncludeDepthExceeded {
limit: u8,
path: String,
},
IncludeSceneOutOfBounds {
index: usize,
path: String,
total: usize,
},
IncludeInlinePath {
path: String,
},
IncludeRemoteFetch {
url: String,
reason: String,
},
IncludeFileNotFound {
path: String,
},
CompositionAndScenesConflict,
UnknownBackgroundTemplate {
name: String,
},
UnknownHeropattern {
name: String,
},
UndefinedVariable {
name: String,
path: String,
},
VariableMissingDefault {
name: String,
path: String,
},
UnresolvedVariable {
name: String,
path: String,
},
VariableInterpolationTypeError {
name: String,
path: String,
},
ComponentsBlockNotObject {
path: String,
},
ComponentDefinitionInvalid {
name: String,
path: String,
reason: String,
},
UseDirectiveInvalid {
path: String,
reason: String,
},
UnknownComponent {
name: String,
path: String,
},
ComponentParamMissing {
component: String,
param: String,
path: String,
},
UnknownComponentParam {
component: String,
param: String,
path: String,
},
ComponentCycle {
chain: String,
path: String,
},
ForEachDirectiveInvalid {
path: String,
reason: String,
},
ForEachNotArray {
path: String,
found: String,
},
ExpansionDepthExceeded {
limit: u32,
path: String,
},
NoFrames,
CodecContainerMismatch {
codec: String,
container: String,
fix: String,
},
FfmpegSpawn {
reason: String,
},
FfmpegFailed {
stderr: Option<String>,
},
FfmpegPipe,
FfmpegWrite {
reason: String,
stderr: Option<String>,
},
FfmpegWait {
reason: String,
},
FfmpegFrameExtract {
src: String,
},
GifEncoder {
reason: String,
},
GifRepeat {
reason: String,
},
GifFrame {
reason: String,
},
AudioOpen {
path: String,
reason: String,
},
AudioProbe {
path: String,
reason: String,
},
AudioNoTrack {
path: String,
},
AudioDecoder {
path: String,
reason: String,
},
SurfaceCreation,
PixelImage,
PixelRead,
MotionBlurSurface,
ConflictingInput,
MissingInput,
WatchRequiresFile,
FrameOutOfRange {
frame: u32,
total: u32,
},
FrameRangeOutOfRange {
start: u32,
end: u32,
total: u32,
},
TimeOutOfRange {
time: f64,
},
WatcherClosed,
ValidationFailed {
schema_errors: usize,
geometry_violations: usize,
unresolved_vars: usize,
},
IncrementalUnsupported {
reason: String,
},
InvalidCrf {
value: u8,
},
UnknownCodec {
codec: String,
},
NonUtf8Path {
path: String,
},
PreviewWindow {
reason: String,
},
LottieRead {
path: String,
reason: String,
},
LottieMissingSrc,
LottieFrameRead {
path: String,
reason: String,
},
LottieFrameDecode {
path: String,
reason: String,
},
LottieRender {
reason: String,
},
UnknownSkill {
name: String,
},
Io(Error),
Image(ImageError),
Notify(Error),
Other(String),
}Variants§
Generic(String)
FileRead
JsonParse
HtmlParse(String)
ImageLoad
ImageDecode
SvgMissingSrc
SvgLoad
SvgParse
PixmapCreation
InvalidIconFormat
IconFetch
IconParse
SkiaImageCreation
GifOpen
GifDecode
QrCodeGeneration
FontNotFound
FontSourceAndPathConflict
FontMissingPath
GoogleFontsFetch
GoogleFontsNoUrls
GoogleFontsTtfFetch
IncludeDepthExceeded
IncludeSceneOutOfBounds
IncludeInlinePath
IncludeRemoteFetch
IncludeFileNotFound
CompositionAndScenesConflict
UnknownBackgroundTemplate
UnknownHeropattern
UndefinedVariable
VariableMissingDefault
UnresolvedVariable
VariableInterpolationTypeError
ComponentsBlockNotObject
ComponentDefinitionInvalid
UseDirectiveInvalid
UnknownComponent
ComponentParamMissing
UnknownComponentParam
ComponentCycle
ForEachDirectiveInvalid
ForEachNotArray
ExpansionDepthExceeded
NoFrames
CodecContainerMismatch
FfmpegSpawn
FfmpegFailed
FfmpegPipe
FfmpegWrite
FfmpegWait
FfmpegFrameExtract
GifEncoder
GifRepeat
GifFrame
AudioOpen
AudioProbe
AudioNoTrack
AudioDecoder
SurfaceCreation
PixelImage
PixelRead
MotionBlurSurface
ConflictingInput
MissingInput
WatchRequiresFile
FrameOutOfRange
FrameRangeOutOfRange
TimeOutOfRange
WatcherClosed
ValidationFailed
IncrementalUnsupported
InvalidCrf
UnknownCodec
NonUtf8Path
PreviewWindow
LottieRead
LottieMissingSrc
LottieFrameRead
LottieFrameDecode
LottieRender
UnknownSkill
Io(Error)
Image(ImageError)
Notify(Error)
Other(String)
Trait Implementations§
Source§impl Debug for RustmotionError
impl Debug for RustmotionError
Source§impl Display for RustmotionError
impl Display for RustmotionError
Source§impl Error for RustmotionError
impl Error for RustmotionError
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<Error> for RustmotionError
impl From<Error> for RustmotionError
Source§impl From<Error> for RustmotionError
impl From<Error> for RustmotionError
Source§impl From<Error> for RustmotionError
impl From<Error> for RustmotionError
Source§impl From<ImageError> for RustmotionError
impl From<ImageError> for RustmotionError
Source§fn from(source: ImageError) -> Self
fn from(source: ImageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RustmotionError
impl !UnwindSafe for RustmotionError
impl Freeze for RustmotionError
impl Send for RustmotionError
impl Sync for RustmotionError
impl Unpin for RustmotionError
impl UnsafeUnpin for RustmotionError
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