pub trait StateOriginInfo: Debug {
// Required methods
fn state_name(&self) -> &str;
fn state_origin(&self) -> StateOrigin;
}Expand description
An interface for returning the name of an object providing state.
Required Methods§
Sourcefn state_name(&self) -> &str
fn state_name(&self) -> &str
The name of the state implementation.
Sourcefn state_origin(&self) -> StateOrigin
fn state_origin(&self) -> StateOrigin
The origin of the state.