pub enum WriteFileError {
Show 17 variants
Io(Error),
Scene(EncodeSceneError),
Mesh(EncodeMeshError),
Supports(EncodeDocumentsError),
Hollows(EncodeDocumentsError),
Previews(EncodePreviewsError),
Surface(EncodeSurfaceError),
Roles(EncodeRolesError),
RoleConflict {
leaf: usize,
},
Metadata(EncodeMetadataError),
Volumes(EncodeVolumesError),
VolumeConflict {
model: usize,
},
ProgramData(EncodeProgramDataError),
OtherChunk {
tag: ChunkTag,
},
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)
Volumes(EncodeVolumesError)
VolumeConflict
A volume belongs to a support leaf or a leaf with the role of supports or a raft, or a hollowed model has a negative volume.
ProgramData(EncodeProgramDataError)
OtherChunk
One of other_chunks has a tag this build knows, which it writes
itself, or a tag that is not four ASCII letters or digits starting
with a letter.
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 WriteFileErrorwhere
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
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