pub enum EmbeddedAssistantError {
Show 14 variants
Parse {
message: String,
},
SchemaImport {
path: String,
},
Compile {
message: String,
},
Assemble {
message: String,
},
Package {
source: PackageError,
},
MissingInput {
name: &'static str,
},
MissingSignal {
name: &'static str,
},
MissingSignalField {
signal: &'static str,
field: &'static str,
},
MissingQuery {
name: &'static str,
},
MissingContract {
message: String,
},
QueueWouldBeDefault {
workflow_type: String,
default_queue: &'static str,
},
MissingWorkerBlock {
expected: String,
},
AmbiguousQueue {
declared: String,
expected: String,
},
QueueNotDerived {
declared: String,
expected: String,
},
}Expand description
A refusal to produce the embedded assistant.
Every variant names what about the document made it unusable. There is no
“assistant unavailable” catch-all: an operator reading a boot log or an
/assistant error must be able to act on it.
Variants§
Parse
The embedded document does not parse.
SchemaImport
The embedded document carries a schema(…) import.
The binary embeds one file and no directory, so an import has nothing to resolve against. This is a refusal to guess, not a limitation dressed up as one: inlining the type into the document removes it.
Compile
The embedded document does not compile.
Assemble
The compiled document could not be assembled into an archive.
Package
The assembled archive did not load back as a validated package.
Fields
source: PackageErrorThe package validation failure.
MissingInput
The document does not declare an input the session contract names.
MissingSignal
The document does not declare the continuation signal.
MissingSignalField
The continuation signal’s payload lacks a field the contract sends.
Fields
MissingQuery
The document does not declare the status query.
MissingContract
The compiled package declares no signal contract at all.
QueueWouldBeDefault
The document’s own workflow type would derive the out-of-box workers’ queue, so the assistant cannot have a private queue at all.
Fields
MissingWorkerBlock
The document declares no worker block, so it claims no queue.
AmbiguousQueue
The document declares more than one worker block, so “the assistant’s
queue” is not one value.
Fields
QueueNotDerived
The document declares a queue other than its derived private one.
Trait Implementations§
Source§impl Debug for EmbeddedAssistantError
impl Debug for EmbeddedAssistantError
Source§impl Display for EmbeddedAssistantError
impl Display for EmbeddedAssistantError
Source§impl Error for EmbeddedAssistantError
impl Error for EmbeddedAssistantError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<PackageError> for EmbeddedAssistantError
impl From<PackageError> for EmbeddedAssistantError
Source§fn from(source: PackageError) -> Self
fn from(source: PackageError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for EmbeddedAssistantError
impl !UnwindSafe for EmbeddedAssistantError
impl Freeze for EmbeddedAssistantError
impl Send for EmbeddedAssistantError
impl Sync for EmbeddedAssistantError
impl Unpin for EmbeddedAssistantError
impl UnsafeUnpin for EmbeddedAssistantError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request