result.DoException
: This is used to signal todo()
that the result is anErr
,result.Err
: A value that signifies failure and which stores arbitrary data for the error.result.Ok
: A value that indicates success and which stores arbitrary data for the return value.result.UnwrapError
: Exception raised from.unwrap_<...>
and.expect_<...>
calls.
result.as_async_result
: Make a decorator to turn an async function into one that returns aResult
.result.as_result
: Make a decorator to turn a function into one that returns aResult
.result.do
: Do notation for Result (syntactic sugar for sequence ofand_then()
calls).result.do_async
: Async version of do. Example:result.is_err
: A type guard to check if a result is an Errresult.is_ok
: A type guard to check if a result is an Ok
This file was automatically generated via lazydocs.