pub enum DefineTypeError {
TypeAlreadyDefined,
CannotDefineResource,
ExportConflict {
name: String,
},
InvalidExternName {
name: String,
source: Error,
},
}
Expand description
Represents an error that can occur when defining a type in a composition graph.
Variants§
TypeAlreadyDefined
The provided type has already been defined in the graph.
CannotDefineResource
A resource type cannot be defined in the graph.
ExportConflict
The specified type name conflicts with an existing export.
InvalidExternName
The specified type name is not a valid extern name.
Trait Implementations§
Source§impl Debug for DefineTypeError
impl Debug for DefineTypeError
Source§impl Display for DefineTypeError
impl Display for DefineTypeError
Source§impl Error for DefineTypeError
impl Error for DefineTypeError
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 DefineTypeError
impl RefUnwindSafe for DefineTypeError
impl Send for DefineTypeError
impl Sync for DefineTypeError
impl Unpin for DefineTypeError
impl UnwindSafe for DefineTypeError
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