pub enum DecodeSurfaceError {
Malformed,
NotALeaf,
SameEntry,
}Expand description
Why a surface paint payload could not be decoded.
Variants§
Malformed
The payload is cut short or padded, or a program name breaks the rules of a program name.
NotALeaf
An entry names a node the scene does not have, or one that is not a leaf.
SameEntry
Two entries have the same program, leaf and kind.
Trait Implementations§
Source§impl Clone for DecodeSurfaceError
impl Clone for DecodeSurfaceError
Source§impl Debug for DecodeSurfaceError
impl Debug for DecodeSurfaceError
Source§impl Display for DecodeSurfaceError
impl Display for DecodeSurfaceError
impl Eq for DecodeSurfaceError
Source§impl Error for DecodeSurfaceError
impl Error for DecodeSurfaceError
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 PartialEq for DecodeSurfaceError
impl PartialEq for DecodeSurfaceError
impl StructuralPartialEq for DecodeSurfaceError
Auto Trait Implementations§
impl Forget for DecodeSurfaceError
impl Freeze for DecodeSurfaceError
impl Move for DecodeSurfaceError
impl RefUnwindSafe for DecodeSurfaceError
impl Send for DecodeSurfaceError
impl Sync for DecodeSurfaceError
impl Unpin for DecodeSurfaceError
impl UnsafeUnpin for DecodeSurfaceError
impl UnwindSafe for DecodeSurfaceError
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