Closed Stebalien closed 9 years ago
Yeah, I was thinking about this. I had initially made it an array because I had envisioned potentially passing in several different file descriptors, but that can really just be its own struct member if we ever want to do that.
Looks good to me, thank you!
Just released 0.3.0
which contains this change.
Note that the README.md file should also be updated (but that doesn't need its own release version).
@pythonesque just updated. Thanks for the reminder!
This commit also changes the error type returned from
RustBox::init
to match the new options structure and replaces the boxedError
with anIoError
(because this is the only error that can occur).Using structures for initialization options is more idiomatic (this is what rustc tends to do). Unfortunately, I had to make several unrelated changes in this commit to get a reasonable error type. I can split this into multiple commits but I'd rather not go though the hassle.