Success
Properties
Link copied to clipboard
True for PasskeyResult.Failure.
Link copied to clipboard
True for PasskeyResult.Success.
Functions
Link copied to clipboard
Returns the error on failure, or null on success.
Link copied to clipboard
Returns the value on success, or throws a PasskeyException carrying the error.
Link copied to clipboard
Transforms the value on success; failures pass through unchanged.
Link copied to clipboard
inline fun <T> PasskeyResult<T>.mapError(transform: (PasskeyError) -> PasskeyError): PasskeyResult<T>
Transforms the error on failure, e.g. into another PasskeyError; successes pass through unchanged.
Link copied to clipboard
Runs action with the error if this is a PasskeyResult.Failure; returns this result unchanged.
Link copied to clipboard
Runs action with the value if this is a PasskeyResult.Success; returns this result unchanged.
Link copied to clipboard
Link copied to clipboard
The same outcome as a kotlin.Result; a failure holds a PasskeyException whose error is the original error. For code built around Result (e.g. runCatching chains).