pub enum ProjectError {
Show 51 variants
Io {
path: PathBuf,
source: Error,
},
ApplyRollback {
path: PathBuf,
source: Error,
rollback: String,
},
CargoToml {
path: PathBuf,
source: TomlError,
},
MissingRuntimeDependency(PathBuf),
InvalidRuntimeDependency(PathBuf),
InvalidRuntimeFeatures(PathBuf),
GpuiDependency(String),
WouldOverwrite(PathBuf),
ConcurrentChange {
path: PathBuf,
detail: String,
},
InvalidPath(PathBuf),
DuplicateRegistry(ModuleId),
RegistryIdMismatch {
catalog: String,
metadata: ModuleId,
},
RegistryAssetMismatch {
component: ModuleId,
declared: BTreeSet<String>,
bundled: BTreeSet<String>,
},
UnknownComponent(ModuleId),
RegistryCycle(Vec<ModuleId>),
NoComponents,
IncompatibleRuntime(ModuleId),
InvalidComponentPath(ModuleId),
BaselineHash(ModuleId),
IncompleteAssetBaseline(String),
InstalledMetadata(ModuleId),
MissingExport(ModuleId),
ComponentDocumentation {
component: ModuleId,
missing: &'static str,
},
MissingView,
KnownCalls(String),
ManifestRuntime {
required: u32,
actual: u32,
},
ManifestEntry(ModuleId),
UnsupportedAsset(String),
UnsupportedFont(String),
Font(String),
Asset(String),
DuplicateAssetLogical(String),
Theme(String),
ComponentStyle(String),
Locale(String),
UpdateConflictsWritten(Vec<ModuleId>),
Spawn(Error),
DevFailed(Option<i32>),
ModuleId(ModuleIdError),
Header(ComponentHeaderError),
Component(ComponentError),
ComponentExport(ComponentExportError),
Capability(CapabilityError),
Runtime(RuntimeError),
KnownCallLint(KnownCallLintError),
Lifecycle(LifecycleError),
Source(ScriptSourceError),
TomlSerialize(Error),
TomlDeserialize(Error),
JsonSerialize(Error),
ThemeStudio(String),
}Variants§
Io
ApplyRollback
CargoToml
MissingRuntimeDependency(PathBuf)
InvalidRuntimeDependency(PathBuf)
InvalidRuntimeFeatures(PathBuf)
GpuiDependency(String)
WouldOverwrite(PathBuf)
ConcurrentChange
InvalidPath(PathBuf)
DuplicateRegistry(ModuleId)
RegistryIdMismatch
RegistryAssetMismatch
UnknownComponent(ModuleId)
RegistryCycle(Vec<ModuleId>)
NoComponents
IncompatibleRuntime(ModuleId)
InvalidComponentPath(ModuleId)
BaselineHash(ModuleId)
IncompleteAssetBaseline(String)
InstalledMetadata(ModuleId)
MissingExport(ModuleId)
ComponentDocumentation
MissingView
KnownCalls(String)
ManifestRuntime
ManifestEntry(ModuleId)
UnsupportedAsset(String)
UnsupportedFont(String)
Font(String)
Asset(String)
DuplicateAssetLogical(String)
Theme(String)
ComponentStyle(String)
Locale(String)
UpdateConflictsWritten(Vec<ModuleId>)
Spawn(Error)
DevFailed(Option<i32>)
ModuleId(ModuleIdError)
Header(ComponentHeaderError)
Component(ComponentError)
ComponentExport(ComponentExportError)
Capability(CapabilityError)
Runtime(RuntimeError)
KnownCallLint(KnownCallLintError)
Lifecycle(LifecycleError)
Source(ScriptSourceError)
TomlSerialize(Error)
TomlDeserialize(Error)
JsonSerialize(Error)
ThemeStudio(String)
Trait Implementations§
Source§impl Debug for ProjectError
impl Debug for ProjectError
Source§impl Display for ProjectError
impl Display for ProjectError
Source§impl Error for ProjectError
impl Error for ProjectError
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 From<CapabilityError> for ProjectError
impl From<CapabilityError> for ProjectError
Source§fn from(source: CapabilityError) -> Self
fn from(source: CapabilityError) -> Self
Converts to this type from the input type.
Source§impl From<ComponentError> for ProjectError
impl From<ComponentError> for ProjectError
Source§fn from(source: ComponentError) -> Self
fn from(source: ComponentError) -> Self
Converts to this type from the input type.
Source§impl From<ComponentExportError> for ProjectError
impl From<ComponentExportError> for ProjectError
Source§fn from(source: ComponentExportError) -> Self
fn from(source: ComponentExportError) -> Self
Converts to this type from the input type.
Source§impl From<ComponentHeaderError> for ProjectError
impl From<ComponentHeaderError> for ProjectError
Source§fn from(source: ComponentHeaderError) -> Self
fn from(source: ComponentHeaderError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ProjectError
impl From<Error> for ProjectError
Source§impl From<Error> for ProjectError
impl From<Error> for ProjectError
Source§impl From<Error> for ProjectError
impl From<Error> for ProjectError
Source§impl From<KnownCallLintError> for ProjectError
impl From<KnownCallLintError> for ProjectError
Source§fn from(source: KnownCallLintError) -> Self
fn from(source: KnownCallLintError) -> Self
Converts to this type from the input type.
Source§impl From<LifecycleError> for ProjectError
impl From<LifecycleError> for ProjectError
Source§fn from(source: LifecycleError) -> Self
fn from(source: LifecycleError) -> Self
Converts to this type from the input type.
Source§impl From<ModuleIdError> for ProjectError
impl From<ModuleIdError> for ProjectError
Source§fn from(source: ModuleIdError) -> Self
fn from(source: ModuleIdError) -> Self
Converts to this type from the input type.
Source§impl From<RuntimeError> for ProjectError
impl From<RuntimeError> for ProjectError
Source§fn from(source: RuntimeError) -> Self
fn from(source: RuntimeError) -> Self
Converts to this type from the input type.
Source§impl From<ScriptSourceError> for ProjectError
impl From<ScriptSourceError> for ProjectError
Source§fn from(source: ScriptSourceError) -> Self
fn from(source: ScriptSourceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ProjectError
impl !Send for ProjectError
impl !Sync for ProjectError
impl !UnwindSafe for ProjectError
impl Freeze for ProjectError
impl Unpin for ProjectError
impl UnsafeUnpin for ProjectError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more