Skip to main content

Module resource_transform

Module resource_transform 

Source

Type Aliases§

FinishedCallback
The callback a resource transform answers through, once.
ResourceTransform
Rewrites request URLs (asynchronously) before the online file source requests them, or fails the requests. It gets the resource’s kind and URL, and runs on the online file source’s thread, hence Send + Sync.
TransformResult
What a resource transform answers: the URL to load instead, or the error to fail the request with. A failed request is never sent. When the error’s reason allows a retry, the retry calls the transform again.