pub enum WriteFileError {
Show 13 variants
Io(Error),
Scene(EncodeSceneError),
Mesh(EncodeMeshError),
Supports(EncodeDocumentsError),
Hollows(EncodeDocumentsError),
Previews(EncodePreviewsError),
Surface(EncodeSurfaceError),
Roles(EncodeRolesError),
RoleConflict {
leaf: usize,
},
Metadata(EncodeMetadataError),
SupportMeshNotEmpty {
leaf: usize,
},
SupportIsHollowed {
leaf: usize,
},
PreviewWithoutSupports {
leaf: usize,
},
}Expand description
Why a file could not be written.
Variants§
Io(Error)
Scene(EncodeSceneError)
Mesh(EncodeMeshError)
Supports(EncodeDocumentsError)
Hollows(EncodeDocumentsError)
Previews(EncodePreviewsError)
Surface(EncodeSurfaceError)
Roles(EncodeRolesError)
RoleConflict
A role contradicts the supports or hollows: a support leaf given the role of a raft, or a model of either given a role.
Metadata(EncodeMetadataError)
SupportMeshNotEmpty
A support leaf shows a mesh with vertices or triangles: support leaves are stored with an empty mesh.
SupportIsHollowed
A support leaf is also a hollowed model.
PreviewWithoutSupports
A support preview names a leaf that no supports entry shows.
Trait Implementations§
Source§impl Debug for WriteFileError
impl Debug for WriteFileError
Source§impl Display for WriteFileError
impl Display for WriteFileError
Source§impl Error for WriteFileError
impl Error for WriteFileError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for WriteFileError
impl !UnwindSafe for WriteFileError
impl Forget for WriteFileError
impl Freeze for WriteFileError
impl Move for WriteFileError
impl Send for WriteFileError
impl Sync for WriteFileError
impl Unpin for WriteFileError
impl UnsafeUnpin for WriteFileError
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