#[non_exhaustive]pub enum RuntimeError {
MissingProvider,
CommandChannelClosed,
RuntimeClosing,
AsyncRuntimeUnavailable,
ActorJoin(JoinError),
Agent(AgentError),
CodingPresetRequiresFeature,
Session(SessionError),
ShutdownIncomplete {
report: ShutdownReport,
},
InvalidShutdownFinalizerRegistry(ShutdownFinalizerRegistryError),
}Expand description
Errors returned by the embeddable runtime facade.
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.
MissingProvider
The builder cannot create a runtime without a provider.
CommandChannelClosed
A command could not be sent because the runtime actor is closed.
RuntimeClosing
A submission was rejected because the runtime shutdown fence has closed.
Runtime construction requires an active Tokio runtime.
ActorJoin(JoinError)
The runtime actor task failed to join.
Agent(AgentError)
The underlying agent returned an error.
CodingPresetRequiresFeature
The coding preset requires the optional shared-composition feature.
Session(SessionError)
A durable session could not be read or committed.
ShutdownIncomplete
The legacy shutdown wrapper observed incomplete bounded cleanup.
Fields
§
report: ShutdownReportRedacted structured report describing the incomplete stages.
InvalidShutdownFinalizerRegistry(ShutdownFinalizerRegistryError)
Talos-owned shutdown finalizers could not be frozen safely.
Trait Implementations§
Source§impl Debug for RuntimeError
impl Debug for RuntimeError
Source§impl Display for RuntimeError
impl Display for RuntimeError
Source§impl Error for RuntimeError
impl Error for RuntimeError
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<AgentError> for RuntimeError
impl From<AgentError> for RuntimeError
Source§fn from(source: AgentError) -> Self
fn from(source: AgentError) -> Self
Converts to this type from the input type.
Source§impl From<JoinError> for RuntimeError
impl From<JoinError> for RuntimeError
Source§impl From<SessionError> for RuntimeError
impl From<SessionError> for RuntimeError
Source§fn from(source: SessionError) -> Self
fn from(source: SessionError) -> Self
Converts to this type from the input type.
Source§impl From<ShutdownFinalizerRegistryError> for RuntimeError
impl From<ShutdownFinalizerRegistryError> for RuntimeError
Source§fn from(source: ShutdownFinalizerRegistryError) -> Self
fn from(source: ShutdownFinalizerRegistryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RuntimeError
impl !UnwindSafe for RuntimeError
impl Freeze for RuntimeError
impl Send for RuntimeError
impl Sync for RuntimeError
impl Unpin for RuntimeError
impl UnsafeUnpin for RuntimeError
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