pub enum InstantiationArgumentError {
NodeIsNotAnInstantiation {
node: NodeId,
},
InvalidArgumentName {
node: NodeId,
name: String,
package: String,
},
ArgumentTypeMismatch {
name: String,
source: Error,
},
ArgumentAlreadyPassed {
node: NodeId,
name: String,
},
}
Expand description
Represents an error that can occur when setting an instantiation argument in a composition graph.
Variants§
NodeIsNotAnInstantiation
The node is not an instantiation.
InvalidArgumentName
The provided argument name is invalid.
Fields
ArgumentTypeMismatch
The source type does not match the target argument type.
ArgumentAlreadyPassed
The argument has been passed to the instantiation.
Trait Implementations§
Source§impl Debug for InstantiationArgumentError
impl Debug for InstantiationArgumentError
Source§impl Display for InstantiationArgumentError
impl Display for InstantiationArgumentError
Source§impl Error for InstantiationArgumentError
impl Error for InstantiationArgumentError
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 Freeze for InstantiationArgumentError
impl RefUnwindSafe for InstantiationArgumentError
impl Send for InstantiationArgumentError
impl Sync for InstantiationArgumentError
impl Unpin for InstantiationArgumentError
impl UnwindSafe for InstantiationArgumentError
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