#[non_exhaustive]pub enum RuntimeSdkError {
StartFailed(String),
ExecFailed(String),
InvalidState(String),
Protocol(String),
Io(Error),
}Expand description
Errors that can occur in runtime SDK operations.
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.
StartFailed(String)
The runtime failed to start the environment.
ExecFailed(String)
A process execution request failed.
InvalidState(String)
The runtime is not in a valid state for the requested operation.
Protocol(String)
A protocol-level error (JSON-RPC framing, unexpected message).
Io(Error)
An I/O error occurred.
Trait Implementations§
Source§impl Debug for RuntimeSdkError
impl Debug for RuntimeSdkError
Source§impl Display for RuntimeSdkError
impl Display for RuntimeSdkError
Source§impl Error for RuntimeSdkError
impl Error for RuntimeSdkError
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 Freeze for RuntimeSdkError
impl !RefUnwindSafe for RuntimeSdkError
impl Send for RuntimeSdkError
impl Sync for RuntimeSdkError
impl Unpin for RuntimeSdkError
impl UnsafeUnpin for RuntimeSdkError
impl !UnwindSafe for RuntimeSdkError
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