fluent_result library

Classes

Err<T>
A failed Result carrying a single error.
Ok<T>
A successful Result carrying a value.
Result<T>
The outcome of an operation: either Ok with a value, or Err with an error.
ResultConfig
Global, process-wide configuration for fluent_result.
ResultError
A failure reason carried by an Err.
ResultMatcher
A subtype-aware classifier for a caught error.

Extensions

ResultCombinators on Result<T>
Value combinators over a sealed Result.

Functions

fail<T>(Object reason) Result<T>
A failure built from reason (an Object, Exception, or ResultError).
success() Result<void>
A value-free success.
successWith<T>(T value) Result<T>
A success carrying value.