mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
fix complete messageport transfer
This commit is contained in:
parent
4cdfe23cc8
commit
a256f2fcce
7 changed files with 468 additions and 52 deletions
|
@ -1036,8 +1036,12 @@ pub struct PortMessageTask {
|
|||
/// Messages for communication between the constellation and a global managing ports.
|
||||
#[derive(Debug, Deserialize, Serialize)]
|
||||
pub enum MessagePortMsg {
|
||||
/// Enables a port to catch-up on messages that were sent while the transfer was ongoing.
|
||||
CompleteTransfer(MessagePortId, VecDeque<PortMessageTask>),
|
||||
/// Complete the transfer for a batch of ports.
|
||||
CompleteTransfer(HashMap<MessagePortId, VecDeque<PortMessageTask>>),
|
||||
/// Complete the transfer of a single port,
|
||||
/// whose transfer was pending because it had been requested
|
||||
/// while a previous failed transfer was being rolled-back.
|
||||
CompletePendingTransfer(MessagePortId, VecDeque<PortMessageTask>),
|
||||
/// Remove a port, the entangled one doesn't exists anymore.
|
||||
RemoveMessagePort(MessagePortId),
|
||||
/// Handle a new port-message-task.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue