pub trait ActionName:
Copy
+ Eq
+ Ord
+ Hash
+ Debug
+ Display
+ Sized
+ 'static {
// Required methods
fn all() -> &'static [Self];
fn as_str(&self) -> &'static str;
fn from_wire(name: &str) -> Option<Self>;
fn kind(&self) -> MessageKind;
fn origin(&self) -> Origin;
fn block(&self) -> &'static str;
}Expand description
The behaviour every generated per-version Action enum provides.
Required Methods§
Sourcefn from_wire(name: &str) -> Option<Self>
fn from_wire(name: &str) -> Option<Self>
Parses a wire action name; None if this version does not define it.
Sourcefn kind(&self) -> MessageKind
fn kind(&self) -> MessageKind
Whether the action is a CALL or a SEND.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".