Skip to main content

Module artwork

Module artwork 

Source
Expand description

Artwork over a resource stream (crate::streams::bi::RESOURCE).

The client opens a bi stream, writes the kind byte and one crate::resource::ResourceRequest containing ArtworkRequest. The server answers with crate::resource::ResourceResponse and exactly length raw bytes of the image. Each image is its own stream, so a slow one never holds up RPCs or media.

Structs§

ArtworkReply
What follows on the stream.
ArtworkRequest

Enums§

ArtworkResponse
ArtworkSize
The widths the server serves. A fixed set, not a free number: a free width would let one client fill the cache with every width there is. Clients pick the smallest that covers what they draw.