#[non_exhaustive]pub enum ConfigError {
Host(Error),
NoSigningKey,
KeyFile(String),
Licence(Error),
KeyNotPublished {
host: String,
key_id: String,
},
Store(StoreError),
Runtime(String),
}Expand description
Why an engine could not be built (EngineBuilder::build).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Host(Error)
The mesh host is not a DNS name.
NoSigningKey
No signing key was given.
KeyFile(String)
The signing key’s seed file could not be read, or does not hold a seed (32 bytes, or 64 hex digits with an optional final newline).
Licence(Error)
The licence for computed receipts is not an SPDX identifier or an https URL.
KeyNotPublished
The store holds no key document for the mesh host, or the document has no key with the signing key’s id and public key: the store would refuse every computed receipt.
Store(StoreError)
Reading the mesh host’s key document from the store failed.
Runtime(String)
Two runtimes for one language, or a runtime for stored, which the engine answers
itself.
Trait Implementations§
Source§impl Debug for ConfigError
impl Debug for ConfigError
Source§impl Display for ConfigError
impl Display for ConfigError
Source§impl Error for ConfigError
impl Error for ConfigError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for ConfigError
impl !UnwindSafe for ConfigError
impl Forget for ConfigError
impl Freeze for ConfigError
impl Move for ConfigError
impl Send for ConfigError
impl Sync for ConfigError
impl Unpin for ConfigError
impl UnsafeUnpin for ConfigError
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