pub enum AccountStage {
NotAssembled,
Assembling,
Assembled,
AssembleFailed,
}Expand description
账户装配四态(0.2.18,规划 §3.3「添加 ≠ 连接 ≠ 断开 ≠ 移除」)。
口径边界(诚实):这一层只说实例装配,不说登录 —— 登录成败/掉线 ek-ctp 无状态口
可查(开放项 ctp.status,规划裁定 3:状态机等终态口,不做 eLog 自建过渡)。
因此 Assembled 的界面文案必须是「已装配·登录态未知」(短形:状态列宽有限,
长文案会被 Grid 挤成竖排 —— s39 快照实锤过),不得写成「已连接」。
Variants§
NotAssembled
未装配:添加后未连接、实例已摘、或装配失败后未重试。
Assembling
装配中:UiCmd::Connect 已入列,svctl 还没把这个注册名带回在场表。
Assembled
实例已装配(登录态未知)。
AssembleFailed
装配失败:svctl.start 被拒/超时,或 {gw}.configure 被拒。可重试。
Implementations§
Trait Implementations§
Source§impl Clone for AccountStage
impl Clone for AccountStage
impl Copy for AccountStage
Source§impl Debug for AccountStage
impl Debug for AccountStage
Source§impl Default for AccountStage
impl Default for AccountStage
impl Eq for AccountStage
Source§impl PartialEq for AccountStage
impl PartialEq for AccountStage
impl StructuralPartialEq for AccountStage
Auto Trait Implementations§
impl Freeze for AccountStage
impl RefUnwindSafe for AccountStage
impl Send for AccountStage
impl Sync for AccountStage
impl Unpin for AccountStage
impl UnsafeUnpin for AccountStage
impl UnwindSafe for AccountStage
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.