pub enum BindingError {
Read(String),
Write(String),
Layer(String),
Compose(String),
InvalidArgument(String),
Glb(String),
}Expand description
Why a binding call failed.
Variants§
Read(String)
The input is not an IFCX file: invalid JSON, or JSON that does not have the IFCX file shape.
Write(String)
The file could not be written as JSON.
Layer(String)
The imports of a layer could not be resolved: a missing layer, an
import cycle, an unreadable imported layer, or an integrity
mismatch.
Compose(String)
The layers do not compose: a reference cycle, or a reference to a node that no layer defines.
InvalidArgument(String)
A host argument was not what the call expects, such as an empty layer list or a value of the wrong type.
Glb(String)
The render scene could not be written as GLB, for example because the file would exceed 4 GiB.
Implementations§
Trait Implementations§
Source§impl Clone for BindingError
impl Clone for BindingError
Source§fn clone(&self) -> BindingError
fn clone(&self) -> BindingError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BindingError
impl Debug for BindingError
Source§impl Display for BindingError
impl Display for BindingError
Source§impl Error for BindingError
impl Error for BindingError
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 BindingError
impl PartialEq for BindingError
impl Eq for BindingError
impl StructuralPartialEq for BindingError
Auto Trait Implementations§
impl Freeze for BindingError
impl RefUnwindSafe for BindingError
impl Send for BindingError
impl Sync for BindingError
impl Unpin for BindingError
impl UnwindSafe for BindingError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.