This commit is contained in:
daladim 2021-04-11 19:53:38 +02:00
parent 2945bed865
commit 18e2d0a96a

View file

@ -41,8 +41,10 @@ impl SyncResult {
} }
} }
/// A data source that combines two `CalDavSource`s (usually a server and a local cache), which is able to sync both sources. /// A data source that combines two `CalDavSource`s, which is able to sync both sources.
/// This can be used for integration tests, where the remote source is mocked by a `Cache`. ///
/// Usually, you will only need to use a provider between a server and a local cache, that is to say `Provider<Cache, CachedCalendar, Client, RemoteCalendar>`
/// However, providers can be used for integration tests, where the remote source is mocked by a `Cache`.
pub struct Provider<L, T, R, U> pub struct Provider<L, T, R, U>
where where
L: CalDavSource<T>, L: CalDavSource<T>,