mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
libservo: Notify delegates of send errors in request objects (#35668)
* libservo: Notify delegates of send errors in request objects Signed-off-by: Delan Azabani <dazabani@igalia.com> * Remove webview error sender for simplicity Signed-off-by: Delan Azabani <dazabani@igalia.com> * Remove error sender trait, now that there is only one impl Signed-off-by: Delan Azabani <dazabani@igalia.com> * Address review feedback Signed-off-by: Delan Azabani <dazabani@igalia.com> * Add unit tests Signed-off-by: Delan Azabani <dazabani@igalia.com> --------- Signed-off-by: Delan Azabani <dazabani@igalia.com>
This commit is contained in:
parent
f19dd23641
commit
a442a11330
8 changed files with 357 additions and 27 deletions
|
@ -150,7 +150,7 @@ pub enum SimpleDialog {
|
|||
},
|
||||
}
|
||||
|
||||
#[derive(Debug, Default, Deserialize, Serialize)]
|
||||
#[derive(Debug, Default, Deserialize, PartialEq, Serialize)]
|
||||
pub struct AuthenticationResponse {
|
||||
/// Username for http request authentication
|
||||
pub username: String,
|
||||
|
@ -208,7 +208,7 @@ impl Default for PromptResponse {
|
|||
}
|
||||
|
||||
/// A response to a request to allow or deny an action.
|
||||
#[derive(Clone, Copy, Deserialize, PartialEq, Serialize)]
|
||||
#[derive(Clone, Copy, Debug, Deserialize, PartialEq, Serialize)]
|
||||
pub enum AllowOrDeny {
|
||||
Allow,
|
||||
Deny,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue