pub enum StoreError {
Show 13 variants
InvalidVertex(u32),
InvalidTriangle(u32),
VertexInUse {
vertex: u32,
corners: u32,
},
LengthMismatch {
expected: usize,
got: usize,
},
InvalidArgument(&'static str),
UnknownChannel(String),
ChannelExists(String),
NotSourceChannel(String),
NotDerivedChannel(String),
PatchMismatch,
StalePatch,
TransactionPoisoned,
OutOfMemory,
}Expand description
Errors returned by mesh storage operations.
Validation errors are returned before anything is written, so a transaction
stays usable after one. TransactionPoisoned and OutOfMemory are the exceptions.
Variants§
InvalidVertex(u32)
The vertex id is out of range or refers to a removed vertex.
InvalidTriangle(u32)
The triangle id is out of range or refers to a removed triangle.
VertexInUse
The vertex cannot be removed while triangles still use it.
LengthMismatch
Two related inputs have inconsistent lengths.
InvalidArgument(&'static str)
An argument is invalid; the message says which and why.
UnknownChannel(String)
No channel with this name exists.
ChannelExists(String)
A channel with this name already exists.
NotSourceChannel(String)
The operation needs a source channel.
NotDerivedChannel(String)
The operation needs a derived channel.
PatchMismatch
The patch belongs to another mesh or does not match the mesh’s current revision.
StalePatch
The patch was created before compact() renumbered the mesh.
TransactionPoisoned
An earlier operation in this transaction failed after writing; the transaction was rolled back.
OutOfMemory
A memory allocation failed.
Trait Implementations§
Source§impl Clone for StoreError
impl Clone for StoreError
Source§fn clone(&self) -> StoreError
fn clone(&self) -> StoreError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StoreError
impl Debug for StoreError
Source§impl Display for StoreError
impl Display for StoreError
impl Eq for StoreError
Source§impl Error for StoreError
impl Error for StoreError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()