mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Added Debug implementations.
This commit is contained in:
parent
07f6e11485
commit
a47e94c8f6
7 changed files with 53 additions and 6 deletions
|
@ -60,7 +60,7 @@ impl ImageResponder {
|
|||
}
|
||||
|
||||
/// The returned image.
|
||||
#[derive(Clone, Deserialize, Serialize, HeapSizeOf)]
|
||||
#[derive(Clone, Debug, Deserialize, Serialize, HeapSizeOf)]
|
||||
pub enum ImageResponse {
|
||||
/// The requested image was loaded.
|
||||
Loaded(Arc<Image>, ServoUrl),
|
||||
|
@ -84,7 +84,7 @@ pub enum ImageState {
|
|||
#[derive(Copy, Clone, PartialEq, Eq, Deserialize, Serialize, HeapSizeOf, Hash, Debug)]
|
||||
pub struct PendingImageId(pub u64);
|
||||
|
||||
#[derive(Deserialize, Serialize)]
|
||||
#[derive(Debug, Deserialize, Serialize)]
|
||||
pub struct PendingImageResponse {
|
||||
pub response: ImageResponse,
|
||||
pub id: PendingImageId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue