pub enum NodeError {
Missing {
id: NodeId,
},
TypeMismatch {
id: NodeId,
expected: &'static str,
},
MissingContext {
id: NodeId,
reason: &'static str,
},
AlreadyExists {
id: NodeId,
},
MalformedCommandPayload {
tag: &'static str,
},
SlotHostUnavailable {
operation: &'static str,
reason: &'static str,
},
RecompositionLimitExceeded {
operation: &'static str,
limit: usize,
},
}Expand description
An error from an applier or from applying composition commands to nodes.
Variants§
Missing
No node has this id.
TypeMismatch
The node’s type differs from the type that the caller requested.
Fields
MissingContext
The node lacks the context that an operation needs.
AlreadyExists
A node with this id exists already.
MalformedCommandPayload
A queued command has no payload or the wrong one.
A slot host could not be used for operation.
RecompositionLimitExceeded
Reconciling a composition did not settle within limit iterations.
Trait Implementations§
impl Eq for NodeError
Source§impl Error for NodeError
impl Error for NodeError
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()
impl StructuralPartialEq for NodeError
Auto Trait Implementations§
impl Freeze for NodeError
impl RefUnwindSafe for NodeError
impl Send for NodeError
impl Sync for NodeError
impl Unpin for NodeError
impl UnsafeUnpin for NodeError
impl UnwindSafe for NodeError
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