pub enum EmbeddedUpdateCheckError {
Parse {
message: String,
},
SchemaImport {
path: String,
},
Compile {
message: String,
},
Assemble {
message: String,
},
Package {
source: PackageError,
},
WrongWorkflowType {
found: String,
},
MissingContract {
message: String,
},
MissingAction,
WrongBody {
found: Option<String>,
},
}Expand description
A refusal to produce the embedded update-check package, naming the stage that refused.
Variants§
Parse
The embedded document does not parse.
SchemaImport
The embedded document carries a schema(…) import, which the binary —
embedding one file and no directory — has nothing to resolve against.
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.
WrongWorkflowType
The compiled entry module is not UPDATE_CHECK_WORKFLOW_TYPE.
MissingContract
The compiled package declares no contract at all.
MissingAction
The contract does not declare FETCH_ACTION on
UPDATE_CHECK_QUEUE.
WrongBody
The action’s declared body is absent or is not FETCH_COMMAND.
Trait Implementations§
Source§impl Debug for EmbeddedUpdateCheckError
impl Debug for EmbeddedUpdateCheckError
Source§impl Display for EmbeddedUpdateCheckError
impl Display for EmbeddedUpdateCheckError
Source§impl Error for EmbeddedUpdateCheckError
impl Error for EmbeddedUpdateCheckError
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<PackageError> for EmbeddedUpdateCheckError
impl From<PackageError> for EmbeddedUpdateCheckError
Source§fn from(source: PackageError) -> Self
fn from(source: PackageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for EmbeddedUpdateCheckError
impl !UnwindSafe for EmbeddedUpdateCheckError
impl Freeze for EmbeddedUpdateCheckError
impl Send for EmbeddedUpdateCheckError
impl Sync for EmbeddedUpdateCheckError
impl Unpin for EmbeddedUpdateCheckError
impl UnsafeUnpin for EmbeddedUpdateCheckError
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> 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>
Wrap the input message
T in a tonic::Request