pub enum RegistryCoordinationError {
Show 13 variants
StandaloneDriverConflict,
ManagedModeConflict,
DeferredOnlyDefault,
DeferredDriverConflict,
RegistryOccupied,
OwnerMismatch,
CatalogOwnerMismatch,
CatalogIdentityMismatch,
DeferredDriverMissing,
DeferredResourcesRemain,
PublicAdoptDuringBootstrap,
OrphanedDeferredResources,
InvalidDeferredCatalog,
}Expand description
业务作用:对进程级 datasource 模式变化给出稳定拒绝原因。
Variants§
StandaloneDriverConflict
另一 driver 已占用 standalone 模式。
ManagedModeConflict
受管或引导模式拒绝普通 standalone 注册。
DeferredOnlyDefault
延后引导只允许 default。
DeferredDriverConflict
延后引导已记录另一 driver。
RegistryOccupied
当前模式不能开始新的 Application 引导。
OwnerMismatch
owner token 不属于当前启动。
CatalogOwnerMismatch
catalog 与 typed registry 没有使用同一 owner。
CatalogIdentityMismatch
catalog 实例与已发布实例不同。
DeferredDriverMissing
延后引导没有安装对应 driver 的 default。
DeferredResourcesRemain
清理前仍有延后 standalone 资源。
PublicAdoptDuringBootstrap
无 token 的公开 adopt 不能越过 Bootstrapping。
OrphanedDeferredResources
模式已失去 owner,但仍记录待清理资源。
InvalidDeferredCatalog
catalog 不符合延后 default 的单 driver 合同。
Trait Implementations§
Source§impl Clone for RegistryCoordinationError
impl Clone for RegistryCoordinationError
Source§impl Debug for RegistryCoordinationError
impl Debug for RegistryCoordinationError
Source§impl Display for RegistryCoordinationError
impl Display for RegistryCoordinationError
impl Eq for RegistryCoordinationError
Source§impl Error for RegistryCoordinationError
impl Error for RegistryCoordinationError
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()
impl StructuralPartialEq for RegistryCoordinationError
Auto Trait Implementations§
impl Forget for RegistryCoordinationError
impl Freeze for RegistryCoordinationError
impl Move for RegistryCoordinationError
impl RefUnwindSafe for RegistryCoordinationError
impl Send for RegistryCoordinationError
impl Sync for RegistryCoordinationError
impl Unpin for RegistryCoordinationError
impl UnsafeUnpin for RegistryCoordinationError
impl UnwindSafe for RegistryCoordinationError
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