pub type PromiseResult<T> = Result<T, PromiseError>;
enum PromiseResult<T> { Ok(T), Err(PromiseError), }
Contains the success value
Contains the error value