Error typing for rustical_store as well as some refactoring

This commit is contained in:
Lennart
2024-06-01 13:00:36 +02:00
parent 7fcd9a17f5
commit 1d763b5c8f
20 changed files with 135 additions and 79 deletions

View File

@@ -6,18 +6,20 @@ use event::resource::EventResource;
use principal::PrincipalResource;
use root::RootResource;
use rustical_auth::CheckAuthentication;
use rustical_dav::error::Error;
use rustical_dav::propfind::{route_propfind, ServicePrefix};
use rustical_store::store::CalendarStore;
use rustical_store::CalendarStore;
use std::str::FromStr;
use std::sync::Arc;
use tokio::sync::RwLock;
pub mod calendar;
pub mod error;
pub mod event;
pub mod principal;
pub mod root;
pub use error::Error;
pub struct CalDavContext<C: CalendarStore + ?Sized> {
pub store: Arc<RwLock<C>>,
}