#[non_exhaustive]pub enum BevyReadbackV1Error {
Io(Error),
ReportTooLarge {
limit: u64,
},
Json(Error),
Canonical(Error),
CanonicalTooLarge {
limit: u64,
},
Contract(&'static str),
}Expand description
Bounded strict-reader failure for Bevy readback V1.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Io(Error)
Input stream cannot be read.
ReportTooLarge
Input exceeds the immutable limit.
Json(Error)
JSON shape is not closed V1.
Canonical(Error)
Canonical serializer failed.
CanonicalTooLarge
Canonical V1 bytes exceed the same cap as the strict reader.
Contract(&'static str)
A semantic invariant failed.
Trait Implementations§
Source§impl Debug for BevyReadbackV1Error
impl Debug for BevyReadbackV1Error
Source§impl Display for BevyReadbackV1Error
impl Display for BevyReadbackV1Error
Source§impl Error for BevyReadbackV1Error
impl Error for BevyReadbackV1Error
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 BevyReadbackV1Error
impl From<Error> for BevyReadbackV1Error
Auto Trait Implementations§
impl !RefUnwindSafe for BevyReadbackV1Error
impl !UnwindSafe for BevyReadbackV1Error
impl Freeze for BevyReadbackV1Error
impl Send for BevyReadbackV1Error
impl Sync for BevyReadbackV1Error
impl Unpin for BevyReadbackV1Error
impl UnsafeUnpin for BevyReadbackV1Error
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