pub type StateResolveResult = Result<Resolved, i32>;
enum StateResolveResult { Ok(Resolved), Err(i32), }
Contains the success value
Contains the error value