mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Implement Debug for Response.
This commit is contained in:
parent
1153ca9841
commit
45153f61b6
1 changed files with 3 additions and 3 deletions
|
@ -25,7 +25,7 @@ pub enum ResponseType {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// [Response termination reason](https://fetch.spec.whatwg.org/#concept-response-termination-reason)
|
/// [Response termination reason](https://fetch.spec.whatwg.org/#concept-response-termination-reason)
|
||||||
#[derive(Clone, Copy, Deserialize, Serialize, HeapSizeOf)]
|
#[derive(Debug, Clone, Copy, Deserialize, Serialize, HeapSizeOf)]
|
||||||
pub enum TerminationReason {
|
pub enum TerminationReason {
|
||||||
EndUserAbort,
|
EndUserAbort,
|
||||||
Fatal,
|
Fatal,
|
||||||
|
@ -61,7 +61,7 @@ pub enum CacheState {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// [Https state](https://fetch.spec.whatwg.org/#concept-response-https-state)
|
/// [Https state](https://fetch.spec.whatwg.org/#concept-response-https-state)
|
||||||
#[derive(Clone, Copy, HeapSizeOf, Deserialize, Serialize)]
|
#[derive(Debug, Clone, Copy, HeapSizeOf, Deserialize, Serialize)]
|
||||||
pub enum HttpsState {
|
pub enum HttpsState {
|
||||||
None,
|
None,
|
||||||
Deprecated,
|
Deprecated,
|
||||||
|
@ -75,7 +75,7 @@ pub enum ResponseMsg {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A [Response](https://fetch.spec.whatwg.org/#concept-response) as defined by the Fetch spec
|
/// A [Response](https://fetch.spec.whatwg.org/#concept-response) as defined by the Fetch spec
|
||||||
#[derive(Clone, HeapSizeOf)]
|
#[derive(Debug, Clone, HeapSizeOf)]
|
||||||
pub struct Response {
|
pub struct Response {
|
||||||
pub response_type: ResponseType,
|
pub response_type: ResponseType,
|
||||||
pub termination_reason: Option<TerminationReason>,
|
pub termination_reason: Option<TerminationReason>,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue