pub trait StateResolverError {
// Required method
fn try_as_unknown_use_case(&self) -> Option<&String>;
}
Expand description
Defines some errors being constructable in the type used in the StateResolver
.
Required Methods§
Sourcefn try_as_unknown_use_case(&self) -> Option<&String>
fn try_as_unknown_use_case(&self) -> Option<&String>
Checks if this error was generated because the use_case
identifier supplied to StateResolver::get_state()
was not recognized.
§Returns
The given use_case identifier as a String
, or None
if this error does not represent this case.
Implementations on Foreign Types§
Source§impl StateResolverError for Infallible
We implement it for std::convert::Infallible
to allow implementations to not care about errors.
impl StateResolverError for Infallible
We implement it for std::convert::Infallible
to allow implementations to not care about errors.