mirror of
https://github.com/servo/servo.git
synced 2025-06-24 09:04:33 +01:00
Don't continually re-request completed requests that had load errors.
This commit is contained in:
parent
2742fd2bea
commit
d4e85f9a90
2 changed files with 21 additions and 20 deletions
|
@ -73,14 +73,6 @@ pub enum ImageResponse {
|
|||
None,
|
||||
}
|
||||
|
||||
/// The current state of an image in the cache.
|
||||
#[derive(Clone, Copy, Debug, Deserialize, PartialEq, Serialize)]
|
||||
pub enum ImageState {
|
||||
Pending(PendingImageId),
|
||||
LoadError,
|
||||
NotRequested(PendingImageId),
|
||||
}
|
||||
|
||||
/// The unique id for an image that has previously been requested.
|
||||
#[derive(Clone, Copy, Debug, Deserialize, Eq, Hash, MallocSizeOf, PartialEq, Serialize)]
|
||||
pub struct PendingImageId(pub u64);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue