#[non_exhaustive]pub enum RecordError {
Reserved {
handle: String,
},
InvalidTime {
handle: String,
},
UnknownHandle {
handle: String,
},
TypeMismatch {
handle: String,
existing: String,
requested: String,
},
}Expand description
Why an ɴsɪ call could not be recorded.
One type across every Nsi method, so a consumer matches on one
thing. It is #[non_exhaustive]: ɴsɪ has more rules than this crate
enforces yet, and enforcing another one should not be a breaking
change.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Reserved
A call tried to create or delete one of ɴsɪ’s reserved nodes.
ɴsɪ: “it is not possible to delete the root or the global node”, and they “don’t need to be created” because they already exist.
InvalidTime
A motion sample was given a time that is not a finite number.
3Delight answers E6026 invalid time. Storing one produced a
motion_times a backend could not iterate meaningfully.
UnknownHandle
A connect or disconnect named a handle that does not exist.
ɴsɪ: “the nodes on which the connection is performed must exist.” Recording the edge anyway builds a graph whose nodes are missing, and resolution then answers for it as though it were real.
TypeMismatch
create was called again for an existing handle with a
different node type.
ɴsɪ: “the function does nothing if all other parameters match the call which created that node. Otherwise, it emits an error.” Overwriting the type silently would leave the scene describing something no consumer asked for.
Trait Implementations§
Source§impl Clone for RecordError
impl Clone for RecordError
Source§impl Debug for RecordError
impl Debug for RecordError
Source§impl Display for RecordError
impl Display for RecordError
impl Eq for RecordError
Source§impl Error for RecordError
impl Error for RecordError
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()
Source§impl Hash for RecordError
impl Hash for RecordError
Source§impl PartialEq for RecordError
impl PartialEq for RecordError
impl StructuralPartialEq for RecordError
Auto Trait Implementations§
impl Freeze for RecordError
impl RefUnwindSafe for RecordError
impl Send for RecordError
impl Sync for RecordError
impl Unpin for RecordError
impl UnsafeUnpin for RecordError
impl UnwindSafe for RecordError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.