pub enum ImageConvertError {
SourcePathEmpty,
SourcePathTooDeep(usize),
EndpointIndexOutOfRange(u8),
RegisterIndexOutOfRange(u8),
}Expand description
Failure modes when converting a SCALE-encoded crate::image::Image
into an ImageCap. The conversion is lossy in fields the v3 cap
shape no longer carries (gas_slots, quota_slots, per-endpoint
arg_registers) and constrained in others — these errors flag the
constraint violations.
Variants§
Trait Implementations§
Source§impl Debug for ImageConvertError
impl Debug for ImageConvertError
Source§impl Display for ImageConvertError
impl Display for ImageConvertError
Source§impl Error for ImageConvertError
impl Error for ImageConvertError
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<ImageConvertError> for CacheError
impl From<ImageConvertError> for CacheError
Source§fn from(source: ImageConvertError) -> Self
fn from(source: ImageConvertError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ImageConvertError
impl RefUnwindSafe for ImageConvertError
impl Send for ImageConvertError
impl Sync for ImageConvertError
impl Unpin for ImageConvertError
impl UnsafeUnpin for ImageConvertError
impl UnwindSafe for ImageConvertError
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.