Module FetcherVersion

Module 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§

V1
The deprecated V1 API (removed).
V2
The proper store.fetch_attachment(...) API.