mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Added panic message to failures.
This commit is contained in:
parent
dfb482a2b7
commit
8c0fa01884
9 changed files with 88 additions and 37 deletions
|
@ -32,6 +32,12 @@ pub enum LayoutMsg {
|
|||
ViewportConstrained(PipelineId, ViewportConstraints),
|
||||
}
|
||||
|
||||
impl From<Failure> for LayoutMsg {
|
||||
fn from(failure: Failure) -> LayoutMsg {
|
||||
LayoutMsg::Failure(failure)
|
||||
}
|
||||
}
|
||||
|
||||
/// Messages from the script to the constellation.
|
||||
#[derive(Deserialize, Serialize)]
|
||||
pub enum ScriptMsg {
|
||||
|
@ -86,3 +92,9 @@ pub enum ScriptMsg {
|
|||
/// Update the pipeline Url, which can change after redirections.
|
||||
SetFinalUrl(PipelineId, Url),
|
||||
}
|
||||
|
||||
impl From<Failure> for ScriptMsg {
|
||||
fn from(failure: Failure) -> ScriptMsg {
|
||||
ScriptMsg::Failure(failure)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue