pub enum ErrorCode {
Show 23 variants
InvalidRequest,
Internal,
NotImplemented,
UiOnly,
ProjectNotOpen,
ProjectIo,
JobBusy,
JobNotFound,
Cancelled,
EngineInput,
ComputeUnavailable,
ExportFailed,
ExportScope,
StaleInputs,
DeviceUnavailable,
RecordingFailed,
ShareModeRefused,
RewUnreachable,
RewProRequired,
RewFailed,
MeasurementInput,
TutorialBlocked,
ConfirmRequired,
}Expand description
Why a call failed. The screen maps each code to a written message with the cause and the next action.
Variants§
InvalidRequest
The request did not parse or named an unknown method.
Internal
A bug: the service failed in a way it does not expect.
NotImplemented
The method is registered but not connected yet.
UiOnly
The method opens a window or program and is unavailable to local API clients.
ProjectNotOpen
The call requires an open project.
ProjectIo
Opening, reading, or writing project data failed.
JobBusy
Another job in the same group is running.
JobNotFound
The named job does not exist.
Cancelled
The caller cancelled the operation.
EngineInput
Project measurements or settings are not valid engine inputs.
Explicit GPU execution was requested but no usable GPU backend is available.
ExportFailed
The requested exporter failed.
ExportScope
The chosen export cannot carry the result (upstream
filter_export_block); params.reason is an ExportBlock name.
StaleInputs
Cached results no longer match project inputs.
The audio backend or selected endpoint is unavailable.
RecordingFailed
Recording completed but was discarded because it had a gap or corrupt samples.
The backend refused a pinned audio share mode.
RewUnreachable
The REW API cannot be reached.
RewProRequired
REW requires a Pro license for this operation.
RewFailed
REW returned an HTTP or schema failure.
MeasurementInput
A measurement setting or plan field is invalid.
TutorialBlocked
Tutorial sessions cannot save or export project data.
ConfirmRequired
A destructive edit needs explicit confirmation while measurements exist.
Trait Implementations§
impl Copy for ErrorCode
Source§impl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Source§impl TS for ErrorCode
impl TS for ErrorCode
Source§type WithoutGenerics = ErrorCode
type WithoutGenerics = ErrorCode
WithoutGenerics should just be Self.
If the type does have generic parameters, then all generic parameters must be replaced with
a dummy type, e.g ts_rs::Dummy or (). The only requirement for these dummy types is that
EXPORT_TO must be None. Read moreSource§type OptionInnerType = ErrorCode
type OptionInnerType = ErrorCode
std::option::Option<T>, then this associated type is set to T.
All other implementations of TS should set this type to Self instead.Source§fn docs() -> Option<String>
fn docs() -> Option<String>
TS is derived, docs are
automatically read from your doc comments or #[doc = ".."] attributesSource§fn decl_concrete(cfg: &Config) -> String
fn decl_concrete(cfg: &Config) -> String
TS::decl().
If this type is not generic, then this function is equivalent to TS::decl().Source§fn decl(cfg: &Config) -> String
fn decl(cfg: &Config) -> String
type User = { user_id: number, ... }.
This function will panic if the type has no declaration. Read moreSource§fn inline(cfg: &Config) -> String
fn inline(cfg: &Config) -> String
{ user_id: number }.
This function will panic if the type cannot be inlined.Source§fn inline_flattened(cfg: &Config) -> String
fn inline_flattened(cfg: &Config) -> String
Source§fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
Source§fn output_path() -> Option<PathBuf>
fn output_path() -> Option<PathBuf>
T should be exported, relative to the output directory.
The returned path does not include any base directory. Read moreSource§fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
Source§fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
Source§fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
TS::export_all. Read moreSource§fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
TS::export. Read more