pub enum Error {
Show 28 variants
Io(Error),
NotFound(String),
Library(Error),
JpegEncoding(EncodingError),
Codec(CodecError),
ResizeImageBuffer(ImageBufferError),
Resize(ResizeError),
Yuv(YuvError),
G2D(Error),
Tensor(Error),
NotImplemented(String),
NotSupported(String),
InvalidShape(String),
AliasedBuffers(String),
EGL(Error),
GLVersion(String),
EGLLoad(LoadError<Error>),
GbmInvalidFd(InvalidFdError),
GbmFrontBuffer(FrontBufferError),
OpenGl(String),
Internal(String),
CropInvalid(String),
InvalidOptions(String),
ForcedBackendUnavailable(String),
CpuFallbackDenied {
declined: String,
denied: Error,
},
NoConverter,
NotAnImage,
UnsupportedFormat(String),
}Variants§
Io(Error)
NotFound(String)
Library(Error)
JpegEncoding(EncodingError)
Codec(CodecError)
ResizeImageBuffer(ImageBufferError)
Resize(ResizeError)
Yuv(YuvError)
G2D(Error)
Tensor(Error)
NotImplemented(String)
NotSupported(String)
InvalidShape(String)
AliasedBuffers(String)
Two tensor arguments that must be distinct reference the same
underlying buffer (e.g. dst and background in a draw call).
EGL(Error)
GLVersion(String)
EGLLoad(LoadError<Error>)
GbmInvalidFd(InvalidFdError)
GbmFrontBuffer(FrontBufferError)
OpenGl(String)
Internal(String)
CropInvalid(String)
InvalidOptions(String)
Convert options that cannot apply to the destination (normalization coefficients, quantization).
CpuFallbackDenied
A GPU backend declined a convert and the CPU fallback was refused because a tensor’s declared CPU access does not cover it.
Fields
§
denied: ErrorThe CPU backend’s refusal, an
edgefirst_tensor::Error::CpuAccessDenied.
NoConverter
NotAnImage
UnsupportedFormat(String)
Implementations§
Source§impl Error
impl Error
Sourcepub fn cpu_access_denied(&self) -> Option<&Error>
pub fn cpu_access_denied(&self) -> Option<&Error>
The CpuAccessDenied
refusal this error carries, if any: directly, inside a
CpuFallbackDenied, or from a codec.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · 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<CodecError> for Error
Available on crate feature codec only.
impl From<CodecError> for Error
Available on crate feature
codec only.Source§fn from(err: CodecError) -> Self
fn from(err: CodecError) -> Self
Converts to this type from the input type.
Source§impl From<CropBoxError> for Error
impl From<CropBoxError> for Error
Source§fn from(err: CropBoxError) -> Self
fn from(err: CropBoxError) -> Self
Converts to this type from the input type.
Source§impl From<EncodingError> for Error
impl From<EncodingError> for Error
Source§fn from(err: EncodingError) -> Self
fn from(err: EncodingError) -> Self
Converts to this type from the input type.
Source§impl From<FrontBufferError> for Error
Available on Linux and crate feature opengl only.
impl From<FrontBufferError> for Error
Available on Linux and crate feature
opengl only.Source§fn from(err: FrontBufferError) -> Self
fn from(err: FrontBufferError) -> Self
Converts to this type from the input type.
Source§impl From<ImageBufferError> for Error
impl From<ImageBufferError> for Error
Source§fn from(err: ImageBufferError) -> Self
fn from(err: ImageBufferError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidFdError> for Error
Available on Linux and crate feature opengl only.
impl From<InvalidFdError> for Error
Available on Linux and crate feature
opengl only.Source§fn from(err: InvalidFdError) -> Self
fn from(err: InvalidFdError) -> Self
Converts to this type from the input type.
Source§impl From<ResizeError> for Error
impl From<ResizeError> for Error
Source§fn from(err: ResizeError) -> Self
fn from(err: ResizeError) -> Self
Converts to this type from the input type.
Source§impl From<ShapeError> for Error
impl From<ShapeError> for Error
Source§fn from(err: ShapeError) -> Self
fn from(err: ShapeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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