pub struct StratFeedback {
pub op: &'static str,
pub name: String,
pub ok: bool,
pub msg: String,
}Expand description
策略命令的回执(add / edit 这类“窗内要看到结果“的命令用这一条回带)。
纪律:命令线程 ask 完把回执放进 UiShared 的单槽,渲染线程取走即清 ——
窗内不 ask、也不轮询,只读这一格。
Fields§
§op: &'static str动作:"add" / "edit"。
name: String目标实例名。
ok: bool引擎是否受理。
msg: String中文消息(失败必非空)。
Trait Implementations§
Source§impl Clone for StratFeedback
impl Clone for StratFeedback
Source§impl Debug for StratFeedback
impl Debug for StratFeedback
impl Eq for StratFeedback
Source§impl PartialEq for StratFeedback
impl PartialEq for StratFeedback
impl StructuralPartialEq for StratFeedback
Auto Trait Implementations§
impl Freeze for StratFeedback
impl RefUnwindSafe for StratFeedback
impl Send for StratFeedback
impl Sync for StratFeedback
impl Unpin for StratFeedback
impl UnsafeUnpin for StratFeedback
impl UnwindSafe for StratFeedback
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.