You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How I currently envision this working is by making a custom error type, and then having most user-facing functions return Results. I like how rusty-machine has their error type set up, so I imagine doing something similar. Something like
use std::error::Error;structRError{reason:Reason,err:Box<Error>}enumReason{Unknown,InvalidAction,EnvWarning,// issue with environment, wait a bit then try againEnvFatal,// environment is dead...
blah
}
If you're curious about the EnvWarning/Fatal reasons, see #1
The text was updated successfully, but these errors were encountered:
How I currently envision this working is by making a custom error type, and then having most user-facing functions return
Result
s. I like how rusty-machine has their error type set up, so I imagine doing something similar. Something likeIf you're curious about the
EnvWarning/Fatal
reasons, see #1The text was updated successfully, but these errors were encountered: