mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Stream implement pipeThrough (#36977)
Part of https://github.com/servo/servo/issues/34676 https://github.com/servo/servo/pull/36905 needs to be merged first. --------- Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>
This commit is contained in:
parent
d8294fa423
commit
5b2305784a
16 changed files with 129 additions and 227 deletions
|
@ -15,6 +15,12 @@ use strum::EnumIter;
|
|||
|
||||
use crate::PortMessageTask;
|
||||
|
||||
#[derive(Debug, Deserialize, MallocSizeOf, Serialize)]
|
||||
pub struct TransformStreamData {
|
||||
pub readable: (MessagePortId, MessagePortImpl),
|
||||
pub writable: (MessagePortId, MessagePortImpl),
|
||||
}
|
||||
|
||||
/// All the DOM interfaces that can be transferred.
|
||||
#[derive(Clone, Copy, Debug, EnumIter)]
|
||||
pub enum Transferrable {
|
||||
|
@ -28,7 +34,7 @@ pub enum Transferrable {
|
|||
TransformStream,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Deserialize, MallocSizeOf, Serialize)]
|
||||
#[derive(Debug, Deserialize, MallocSizeOf, Serialize)]
|
||||
enum MessagePortState {
|
||||
/// <https://html.spec.whatwg.org/multipage/#detached>
|
||||
Detached,
|
||||
|
@ -42,7 +48,7 @@ enum MessagePortState {
|
|||
Disabled(bool),
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Deserialize, MallocSizeOf, Serialize)]
|
||||
#[derive(Debug, Deserialize, MallocSizeOf, Serialize)]
|
||||
/// The data and logic backing the DOM managed MessagePort.
|
||||
pub struct MessagePortImpl {
|
||||
/// The current state of the port.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue