pub trait RegisteredRuntimeTaskKind: Copy {
// Required methods
fn as_str(self) -> &'static str;
fn display_name(self) -> &'static str;
fn from_wire_value(value: &str) -> Option<Self>;
}Expand description
Lookup contract implemented by product-owned runtime task enums.
Implementations should normally delegate to the module generated by
crate::runtime_task_registry!. Forge uses this trait to provide product-neutral
serialization and display helpers without owning the task enum itself.
Required Methods§
Sourcefn display_name(self) -> &'static str
fn display_name(self) -> &'static str
Returns the operator-facing display name for this runtime task.
Sourcefn from_wire_value(value: &str) -> Option<Self>
fn from_wire_value(value: &str) -> Option<Self>
Decodes a runtime task kind from a stable wire value.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.