|
|
|
|
@ -17,11 +17,6 @@ pub trait CalDavSource<T: PartialCalendar> {
|
|
|
|
|
/// This function may trigger an update (that can be a long process, or that can even fail, e.g. in case of a remote server)
|
|
|
|
|
async fn get_calendars_mut(&mut self) -> Result<HashMap<CalendarId, &mut T>, Box<dyn Error>>; |
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// TODO: find a better search key (do calendars have a unique ID?)
|
|
|
|
|
// TODO: search key should be a reference
|
|
|
|
|
//
|
|
|
|
|
/// Returns the calendar matching the ID
|
|
|
|
|
async fn get_calendar(&self, id: CalendarId) -> Option<&T>; |
|
|
|
|
/// Returns the calendar matching the ID
|
|
|
|
|
|