#[repr(C)]pub(crate) struct StructuredDataReader {
pub(crate) errors: DOMErrorRecord,
pub(crate) blobs: Option<HashMap<StorageKey, DomRoot<Blob>>>,
pub(crate) points_read_only: Option<HashMap<StorageKey, DomRoot<DOMPointReadOnly>>>,
pub(crate) dom_points: Option<HashMap<StorageKey, DomRoot<DOMPoint>>>,
pub(crate) message_ports: Option<Vec<DomRoot<MessagePort>>>,
pub(crate) port_impls: Option<HashMap<MessagePortId, MessagePortImpl>>,
pub(crate) blob_impls: Option<HashMap<BlobId, BlobImpl>>,
pub(crate) points: Option<HashMap<DomPointId, DomPoint>>,
}
Expand description
Reader and writer structs for results from, and inputs to, structured-data read/write operations. https://html.spec.whatwg.org/multipage/#safe-passing-of-structured-data
Fields§
§errors: DOMErrorRecord
A struct of error message.
blobs: Option<HashMap<StorageKey, DomRoot<Blob>>>
A map of deserialized blobs, stored temporarily here to keep them rooted.
points_read_only: Option<HashMap<StorageKey, DomRoot<DOMPointReadOnly>>>
A map of deserialized points, stored temporarily here to keep them rooted.
dom_points: Option<HashMap<StorageKey, DomRoot<DOMPoint>>>
§message_ports: Option<Vec<DomRoot<MessagePort>>>
A vec of transfer-received DOM ports, to be made available to script through a message event.
port_impls: Option<HashMap<MessagePortId, MessagePortImpl>>
A map of port implementations,
used as part of the “transfer-receiving” steps of ports,
to produce the DOM ports stored in message_ports
above.
blob_impls: Option<HashMap<BlobId, BlobImpl>>
A map of blob implementations,
used as part of the “deserialize” steps of blobs,
to produce the DOM blobs stored in blobs
above.
points: Option<HashMap<DomPointId, DomPoint>>
A map of serialized points.
Auto Trait Implementations§
impl Freeze for StructuredDataReader
impl !RefUnwindSafe for StructuredDataReader
impl !Send for StructuredDataReader
impl !Sync for StructuredDataReader
impl Unpin for StructuredDataReader
impl !UnwindSafe for StructuredDataReader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert