Enum CurrentRuntimeAccessError
pub enum CurrentRuntimeAccessError {
NoCurrentRuntime,
TypeMismatch,
DifferentRuntime,
ContextUnavailable,
}Expand description
当前公共环境访问失败;不据此隐式创建服务。
Variants§
NoCurrentRuntime
TypeMismatch
当前保存的公共句柄(handle)与请求的具体类型(type)不同。
DifferentRuntime
当前同步范围已选择不同RuntimeId,不能覆盖该选择。
线程局部存储(TLS)处于不可访问状态,本次不能取得或修改当前环境。
Trait Implementations§
Source§impl Debug for CurrentRuntimeAccessError
impl Debug for CurrentRuntimeAccessError
Source§impl Display for CurrentRuntimeAccessError
impl Display for CurrentRuntimeAccessError
Source§impl Error for CurrentRuntimeAccessError
impl Error for CurrentRuntimeAccessError
1.30.0 · 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 Forget for CurrentRuntimeAccessError
impl Freeze for CurrentRuntimeAccessError
impl Move for CurrentRuntimeAccessError
impl RefUnwindSafe for CurrentRuntimeAccessError
impl Send for CurrentRuntimeAccessError
impl Sync for CurrentRuntimeAccessError
impl Unpin for CurrentRuntimeAccessError
impl UnsafeUnpin for CurrentRuntimeAccessError
impl UnwindSafe for CurrentRuntimeAccessError
Blanket Implementations§
impl<T> Attachment for T
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