User avatar
m001 m047 w003 w005 e001 @niko@microspinny.zip
2mo
@sel are you talking about a Result that is infallible (as in it can't fail), a Result that can have many types of errors, or something that can partially failed?

if it's infallible i'd just drop the
Result and just return T directly

if there can be many types of errors, i'd just add the
anyhow crate and return a Result<T> instead, where Result is anyhow::Result and not std::result::Result

if it can partially fail i'd do:
enum FunctionReturn {
    Ok(T),
    PartialError {
        contents: T,
        error: E,
    },
    Error(E)
}
1
0
1
0

This server's configuration is preventing remotely originating content from being shown. This view may therefore be incomplete.