pub enum RuntimeCode {
Panicked = 1,
CannotBlock = 2,
Cancelled = 3,
Unbound = 4,
NoRuntime = 5,
}Expand description
The failures the runtime itself reports, outside any contract.
Variants§
Panicked = 1
The implementation panicked on another thread (Offload); the
message carries the panic’s message when it has one.
CannotBlock = 2
A sync call through Blocking was made inside a current-thread tokio
runtime, where waiting would stop the runtime the call needs.
Cancelled = 3
The runtime dropped the call before it finished, typically because it is shutting down.
Unbound = 4
A reference to a service holds no implementation: it was never given one, or it was decoded (a reference does not survive encoding).
NoRuntime = 5
An async implementation was asked for in the blocking form where no
tokio runtime could run it: outside a runtime, or in a build without
the tokio feature.
Trait Implementations§
Source§impl Clone for RuntimeCode
impl Clone for RuntimeCode
impl Copy for RuntimeCode
Source§impl Debug for RuntimeCode
impl Debug for RuntimeCode
impl Eq for RuntimeCode
Source§impl ErrorCode for RuntimeCode
impl ErrorCode for RuntimeCode
Source§impl Hash for RuntimeCode
impl Hash for RuntimeCode
Source§impl PartialEq for RuntimeCode
impl PartialEq for RuntimeCode
impl StructuralPartialEq for RuntimeCode
Auto Trait Implementations§
impl Freeze for RuntimeCode
impl RefUnwindSafe for RuntimeCode
impl Send for RuntimeCode
impl Sync for RuntimeCode
impl Unpin for RuntimeCode
impl UnsafeUnpin for RuntimeCode
impl UnwindSafe for RuntimeCode
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