#[non_exhaustive]pub enum EmbedError {
NoProviders,
NoRuntime,
Blueprint(String),
Spawn(String),
ProviderClient(String),
ChannelClosed,
}Expand description
Why an AgentWorld could not be built or a request to
it could not be served.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NoProviders
The builder was given no providers: no credentials and no custom provider registrations. A world with nothing to infer against can only error, so this fails at build time instead.
NoRuntime
No Tokio runtime was found. build() must run inside a Tokio runtime
(or be given a handle via
runtime).
Blueprint(String)
The blueprint could not be loaded, parsed, or validated.
Spawn(String)
The spawn was rejected (bad workdir, unresolvable seeds, and so on).
ProviderClient(String)
A configured provider’s outbound HTTPS client could not be built, so that provider could never reach its API. In practice the machine’s root certificate store could not be read; it is unrelated to any TLS certificate the host itself serves.
ChannelClosed
The world’s serve loop is gone (already shut down), so the request could not be delivered or answered.
Trait Implementations§
Source§impl Clone for EmbedError
impl Clone for EmbedError
Source§fn clone(&self) -> EmbedError
fn clone(&self) -> EmbedError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EmbedError
impl Debug for EmbedError
Source§impl Display for EmbedError
impl Display for EmbedError
impl Eq for EmbedError
Source§impl Error for EmbedError
impl Error for EmbedError
1.30.0 · 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 PartialEq for EmbedError
impl PartialEq for EmbedError
impl StructuralPartialEq for EmbedError
Auto Trait Implementations§
impl Freeze for EmbedError
impl RefUnwindSafe for EmbedError
impl Send for EmbedError
impl Sync for EmbedError
impl Unpin for EmbedError
impl UnsafeUnpin for EmbedError
impl UnwindSafe for EmbedError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ConditionalSend for Twhere
T: Send,
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>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn 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>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which 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)
&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)
&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> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.