Flexible routing

Another massive refactor to change the way routing works. Now any
column can route anywhere.

Also things are generally just much better and more modular via the
new struct split borrowing technique.

I didn't even try to split this into smaller commits for my sanity.

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-09-11 19:43:41 -07:00
parent b4a8cddc48
commit 36c0971fd9
27 changed files with 973 additions and 963 deletions

View File

@@ -40,9 +40,10 @@ impl fmt::Display for SubscriptionError {
#[derive(Debug)]
pub enum Error {
TimelineNotFound,
LoadFailed,
SubscriptionError(SubscriptionError),
Filter(FilterError),
LoadFailed,
Io(io::Error),
Nostr(enostr::Error),
Ndb(nostrdb::Error),
@@ -72,6 +73,7 @@ impl fmt::Display for Error {
Self::SubscriptionError(e) => {
write!(f, "{e}")
}
Self::TimelineNotFound => write!(f, "Timeline not found"),
Self::LoadFailed => {
write!(f, "load failed")
}