The type of the value that the result could potentially contain (not used in this case).
The type of the error to be wrapped in the Err result.
The error to wrap as an Err result.
A Result<T, E> that contains the provided error, representing the Err case.
Creates a
Result<T, E>representing a failed outcome containing an error. This function is used to construct aResultthat signifies the operation failed by containing the errorE.