pub enum ScriptViewError {
Show 36 variants
Io {
path: PathBuf,
source: Error,
},
Runtime(RuntimeError),
Lifecycle(LifecycleError),
ScriptDiagnostic {
message: String,
diagnostic: Box<Diagnostic>,
},
Window(String),
InvalidId(String),
DuplicateView(String),
DisposedView(String),
SuspendedView(String),
Suspend(String),
Resume(String),
KeyBindingConflict {
keystrokes: String,
context: Option<String>,
existing: ActionId,
requested: ActionId,
},
Theme(String),
ComponentStyle(ComponentStyleError),
Locale(String),
Extension(String),
Manifest(String),
ManifestEntry {
manifest: ModuleId,
host: ModuleId,
},
Capability(CapabilityError),
Async(AsyncRuntimeError),
Responsive(ResponsiveError),
Dependency(DependencyError),
ComponentExport(ComponentExportError),
Action(ActionError),
Signal(SignalError),
NativeCollection(NativeCollectionError),
Document(DocumentError),
ElementRef(ElementRefError),
Overlay(OverlayError),
ModulePath(PathBuf),
ModuleId(ModuleIdError),
ScriptSource(ScriptSourceError),
Asset(AssetError),
Font(FontError),
Accessibility(AccessibilityError),
Automation(AutomationError),
}Variants§
Io
Runtime(RuntimeError)
Lifecycle(LifecycleError)
ScriptDiagnostic
Window(String)
InvalidId(String)
DuplicateView(String)
DisposedView(String)
SuspendedView(String)
Suspend(String)
Resume(String)
KeyBindingConflict
Theme(String)
ComponentStyle(ComponentStyleError)
Locale(String)
Extension(String)
Manifest(String)
ManifestEntry
Capability(CapabilityError)
Async(AsyncRuntimeError)
Responsive(ResponsiveError)
Dependency(DependencyError)
ComponentExport(ComponentExportError)
Action(ActionError)
Signal(SignalError)
NativeCollection(NativeCollectionError)
Document(DocumentError)
ElementRef(ElementRefError)
Overlay(OverlayError)
ModulePath(PathBuf)
ModuleId(ModuleIdError)
ScriptSource(ScriptSourceError)
Asset(AssetError)
Font(FontError)
Accessibility(AccessibilityError)
Automation(AutomationError)
Implementations§
Source§impl ScriptViewError
impl ScriptViewError
pub fn diagnostic(&self) -> Option<&Diagnostic>
Trait Implementations§
Source§impl Debug for ScriptViewError
impl Debug for ScriptViewError
Source§impl Display for ScriptViewError
impl Display for ScriptViewError
Source§impl Error for ScriptViewError
impl Error for ScriptViewError
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<AccessibilityError> for ScriptViewError
impl From<AccessibilityError> for ScriptViewError
Source§fn from(source: AccessibilityError) -> Self
fn from(source: AccessibilityError) -> Self
Converts to this type from the input type.
Source§impl From<ActionError> for ScriptViewError
impl From<ActionError> for ScriptViewError
Source§fn from(source: ActionError) -> Self
fn from(source: ActionError) -> Self
Converts to this type from the input type.
Source§impl From<AssetError> for ScriptViewError
impl From<AssetError> for ScriptViewError
Source§fn from(source: AssetError) -> Self
fn from(source: AssetError) -> Self
Converts to this type from the input type.
Source§impl From<AsyncRuntimeError> for ScriptViewError
impl From<AsyncRuntimeError> for ScriptViewError
Source§fn from(source: AsyncRuntimeError) -> Self
fn from(source: AsyncRuntimeError) -> Self
Converts to this type from the input type.
Source§impl From<AutomationError> for ScriptViewError
impl From<AutomationError> for ScriptViewError
Source§fn from(source: AutomationError) -> Self
fn from(source: AutomationError) -> Self
Converts to this type from the input type.
Source§impl From<CapabilityError> for ScriptViewError
impl From<CapabilityError> for ScriptViewError
Source§fn from(source: CapabilityError) -> Self
fn from(source: CapabilityError) -> Self
Converts to this type from the input type.
Source§impl From<ComponentExportError> for ScriptViewError
impl From<ComponentExportError> for ScriptViewError
Source§fn from(source: ComponentExportError) -> Self
fn from(source: ComponentExportError) -> Self
Converts to this type from the input type.
Source§impl From<ComponentStyleError> for ScriptViewError
impl From<ComponentStyleError> for ScriptViewError
Source§fn from(source: ComponentStyleError) -> Self
fn from(source: ComponentStyleError) -> Self
Converts to this type from the input type.
Source§impl From<DependencyError> for ScriptViewError
impl From<DependencyError> for ScriptViewError
Source§fn from(source: DependencyError) -> Self
fn from(source: DependencyError) -> Self
Converts to this type from the input type.
Source§impl From<DocumentError> for ScriptViewError
impl From<DocumentError> for ScriptViewError
Source§fn from(source: DocumentError) -> Self
fn from(source: DocumentError) -> Self
Converts to this type from the input type.
Source§impl From<ElementRefError> for ScriptViewError
impl From<ElementRefError> for ScriptViewError
Source§fn from(source: ElementRefError) -> Self
fn from(source: ElementRefError) -> Self
Converts to this type from the input type.
Source§impl From<FontError> for ScriptViewError
impl From<FontError> for ScriptViewError
Source§impl From<LifecycleError> for ScriptViewError
impl From<LifecycleError> for ScriptViewError
Source§fn from(source: LifecycleError) -> Self
fn from(source: LifecycleError) -> Self
Converts to this type from the input type.
Source§impl From<ModuleIdError> for ScriptViewError
impl From<ModuleIdError> for ScriptViewError
Source§fn from(source: ModuleIdError) -> Self
fn from(source: ModuleIdError) -> Self
Converts to this type from the input type.
Source§impl From<NativeCollectionError> for ScriptViewError
impl From<NativeCollectionError> for ScriptViewError
Source§fn from(source: NativeCollectionError) -> Self
fn from(source: NativeCollectionError) -> Self
Converts to this type from the input type.
Source§impl From<OverlayError> for ScriptViewError
impl From<OverlayError> for ScriptViewError
Source§fn from(source: OverlayError) -> Self
fn from(source: OverlayError) -> Self
Converts to this type from the input type.
Source§impl From<ResponsiveError> for ScriptViewError
impl From<ResponsiveError> for ScriptViewError
Source§fn from(source: ResponsiveError) -> Self
fn from(source: ResponsiveError) -> Self
Converts to this type from the input type.
Source§impl From<RuntimeError> for ScriptViewError
impl From<RuntimeError> for ScriptViewError
Source§fn from(source: RuntimeError) -> Self
fn from(source: RuntimeError) -> Self
Converts to this type from the input type.
Source§impl From<ScriptSourceError> for ScriptViewError
impl From<ScriptSourceError> for ScriptViewError
Source§fn from(source: ScriptSourceError) -> Self
fn from(source: ScriptSourceError) -> Self
Converts to this type from the input type.
Source§impl From<SignalError> for ScriptViewError
impl From<SignalError> for ScriptViewError
Source§fn from(source: SignalError) -> Self
fn from(source: SignalError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ScriptViewError
impl !Send for ScriptViewError
impl !Sync for ScriptViewError
impl !UnwindSafe for ScriptViewError
impl Freeze for ScriptViewError
impl Unpin for ScriptViewError
impl UnsafeUnpin for ScriptViewError
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