You can only return one type of error, however Raft frequently deals with io::Result and capnp::Result, as well as having some of it's own error states not related. In order to effectively pass up errors, we need to have our own error type.
This will require building some error infrastructure. Probably implementing FromError for the created enum.
You can only return one type of error, however Raft frequently deals with
io::Result
andcapnp::Result
, as well as having some of it's own error states not related. In order to effectively pass up errors, we need to have our own error type.This will require building some error infrastructure. Probably implementing
FromError
for the created enum.