Module dittolive_ditto::store::attachment::fetcher::FetcherVersion
source · Expand description
Type-level enum
to distinguish between a DittoAttachmentFetcher
that
can and must be cancelled, and the legacy behavior where it was auto-cancelled on drop.
ⓘ
// It represents the following, but at the type-level ("const generic" sort to speak).
enum FetcherVersion /* : Sealed */ {
/// The deprecated `.collection.fetch_attachment(...)` API.
V1,
/// The proper `.store.fetch_attachment(...)` API.
V2,
}
Enums
- The deprecated
collection.fetch_attachment(...)
API. - The proper
store.fetch_attachment(...)
API.