Skip to main content

RustmotionError

Enum RustmotionError 

Source
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

Fields

§path: String
§source: Error
§

JsonParse

Fields

§source: Error
§

HtmlParse(String)

§

ImageLoad

Fields

§path: String
§reason: String
§

ImageDecode

Fields

§path: String
§

SvgMissingSrc

§

SvgLoad

Fields

§path: String
§reason: String
§

SvgParse

Fields

§reason: String
§

PixmapCreation

Fields

§target: String
§

InvalidIconFormat

Fields

§icon: String
§

IconFetch

Fields

§icon: String
§reason: String
§

IconParse

Fields

§icon: String
§reason: String
§

SkiaImageCreation

Fields

§target: String
§

GifOpen

Fields

§path: String
§reason: String
§

GifDecode

Fields

§path: String
§reason: String
§

QrCodeGeneration

Fields

§reason: String
§

FontNotFound

§

FontSourceAndPathConflict

Fields

§family: String
§

FontMissingPath

Fields

§family: String
§

GoogleFontsFetch

Fields

§family: String
§reason: String
§cache_hint: String
§

GoogleFontsNoUrls

Fields

§family: String
§

GoogleFontsTtfFetch

Fields

§family: String
§weight: u16
§reason: String
§

IncludeDepthExceeded

Fields

§limit: u8
§path: String
§

IncludeSceneOutOfBounds

Fields

§index: usize
§path: String
§total: usize
§

IncludeInlinePath

Fields

§path: String
§

IncludeRemoteFetch

Fields

§reason: String
§

IncludeFileNotFound

Fields

§path: String
§

CompositionAndScenesConflict

§

UnknownBackgroundTemplate

Fields

§name: String
§

UnknownHeropattern

Fields

§name: String
§

UndefinedVariable

Fields

§name: String
§path: String
§

VariableMissingDefault

Fields

§name: String
§path: String
§

UnresolvedVariable

Fields

§name: String
§path: String
§

VariableInterpolationTypeError

Fields

§name: String
§path: String
§

ComponentsBlockNotObject

Fields

§path: String
§

ComponentDefinitionInvalid

Fields

§name: String
§path: String
§reason: String
§

UseDirectiveInvalid

Fields

§path: String
§reason: String
§

UnknownComponent

Fields

§name: String
§path: String
§

ComponentParamMissing

Fields

§component: String
§param: String
§path: String
§

UnknownComponentParam

Fields

§component: String
§param: String
§path: String
§

ComponentCycle

Fields

§chain: String
§path: String
§

ForEachDirectiveInvalid

Fields

§path: String
§reason: String
§

ForEachNotArray

Fields

§path: String
§found: String
§

ExpansionDepthExceeded

Fields

§limit: u32
§path: String
§

NoFrames

§

CodecContainerMismatch

Fields

§codec: String
§container: String
§

FfmpegSpawn

Fields

§reason: String
§

FfmpegFailed

Fields

§stderr: Option<String>
§

FfmpegPipe

§

FfmpegWrite

Fields

§reason: String
§stderr: Option<String>
§

FfmpegWait

Fields

§reason: String
§

FfmpegFrameExtract

Fields

§

GifEncoder

Fields

§reason: String
§

GifRepeat

Fields

§reason: String
§

GifFrame

Fields

§reason: String
§

AudioOpen

Fields

§path: String
§reason: String
§

AudioProbe

Fields

§path: String
§reason: String
§

AudioNoTrack

Fields

§path: String
§

AudioDecoder

Fields

§path: String
§reason: String
§

SurfaceCreation

§

PixelImage

§

PixelRead

§

MotionBlurSurface

§

ConflictingInput

§

MissingInput

§

WatchRequiresFile

§

FrameOutOfRange

Fields

§frame: u32
§total: u32
§

FrameRangeOutOfRange

Fields

§start: u32
§end: u32
§total: u32
§

TimeOutOfRange

Fields

§time: f64
§

WatcherClosed

§

ValidationFailed

Fields

§schema_errors: usize
§geometry_violations: usize
§unresolved_vars: usize
§

IncrementalUnsupported

Fields

§reason: String
§

InvalidCrf

Fields

§value: u8
§

UnknownCodec

Fields

§codec: String
§

NonUtf8Path

Fields

§path: String
§

PreviewWindow

Fields

§reason: String
§

LottieRead

Fields

§path: String
§reason: String
§

LottieMissingSrc

§

LottieFrameRead

Fields

§path: String
§reason: String
§

LottieFrameDecode

Fields

§path: String
§reason: String
§

LottieRender

Fields

§reason: String
§

UnknownSkill

Fields

§name: String
§

Io(Error)

§

Image(ImageError)

§

Notify(Error)

§

Other(String)

Trait Implementations§

Source§

impl Debug for RustmotionError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for RustmotionError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for RustmotionError

Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<Error> for RustmotionError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for RustmotionError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for RustmotionError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<ImageError> for RustmotionError

Source§

fn from(source: ImageError) -> Self

Converts to this type from the input type.
Source§

impl From<String> for RustmotionError

Source§

fn from(s: String) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToSmolStr for T
where T: Display + ?Sized,

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.