summaryrefslogtreecommitdiff
path: root/crates/arti-relay/src/err.rs
Commit message (Collapse)AuthorAgeFilesLines
* relay: Add KeyMgr to TorRelayDavid Goulet2024-09-181-0/+8
| | | | | | | | | | | | This is the first step before creating relay key definition and storing them into a keystore. The KeyMgr should be passed on the ChanMgr in later commit so the ChanMgr can use it for the authenticated channel handshake. Part of #1604 Signed-off-by: David Goulet <[email protected]>
* arti-relay: add and use `Error`/`ErrorDetail`Steven Engler2024-09-051-0/+111
Most of this is copied from `arti_client::err`, but with a lot of stuff removed to simplify the error types (for example no `error_detail` feature handling). I tried to keep things generally consistent with arti-client so that error handling will be similar in both crates. `TorRelayBuilder::create()` will likely need to be fallible in the future (for example if spawning a task for the OR port listener fails), so it now returns a `Result<TorRelay, crate::err::Error>` instead of just a `TorRelay`.