Skip to main content

StateOriginInfo

Trait StateOriginInfo 

Source
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§

Source

fn state_name(&self) -> &str

The name of the state implementation.

Source

fn state_origin(&self) -> StateOrigin

The origin of the state.

Implementors§