#[repr(C)]pub(crate) struct StructuredDataReader<'a> {Show 14 fields
error: Option<Error>,
roots: RootedVec<'a, Box<Heap<*mut JSObject>>>,
pub(crate) port_impls: Option<HashMap<MessagePortId, MessagePortImpl>>,
pub(crate) transform_streams_port_impls: Option<HashMap<MessagePortId, TransformStreamData>>,
pub(crate) blob_impls: Option<HashMap<BlobId, BlobImpl>>,
pub(crate) points: Option<HashMap<DomPointId, DomPoint>>,
pub(crate) rects: Option<HashMap<DomRectId, DomRect>>,
pub(crate) quads: Option<HashMap<DomQuadId, DomQuad>>,
pub(crate) matrices: Option<HashMap<DomMatrixId, DomMatrix>>,
pub(crate) exceptions: Option<HashMap<DomExceptionId, DomException>>,
pub(crate) quota_exceeded_errors: Option<HashMap<QuotaExceededErrorId, SerializableQuotaExceededError>>,
pub(crate) image_bitmaps: Option<HashMap<ImageBitmapId, SerializableImageBitmap>>,
pub(crate) transferred_image_bitmaps: Option<HashMap<ImageBitmapId, SerializableImageBitmap>>,
pub(crate) offscreen_canvases: Option<HashMap<OffscreenCanvasId, TransferableOffscreenCanvas>>,
}
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§
§error: Option<Error>
A error record.
roots: RootedVec<'a, Box<Heap<*mut JSObject>>>
Rooted copies of every deserialized object to ensure they are not garbage collected.
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.
transform_streams_port_impls: Option<HashMap<MessagePortId, TransformStreamData>>
A map of transform stream implementations,
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.
rects: Option<HashMap<DomRectId, DomRect>>
A map of serialized rects.
quads: Option<HashMap<DomQuadId, DomQuad>>
A map of serialized quads.
matrices: Option<HashMap<DomMatrixId, DomMatrix>>
A map of serialized matrices.
exceptions: Option<HashMap<DomExceptionId, DomException>>
A map of serialized exceptions.
quota_exceeded_errors: Option<HashMap<QuotaExceededErrorId, SerializableQuotaExceededError>>
A map of serialized quota exceeded errors.
image_bitmaps: Option<HashMap<ImageBitmapId, SerializableImageBitmap>>
§transferred_image_bitmaps: Option<HashMap<ImageBitmapId, SerializableImageBitmap>>
A map of transferred image bitmaps.
offscreen_canvases: Option<HashMap<OffscreenCanvasId, TransferableOffscreenCanvas>>
A map of transferred offscreen canvases.
Auto Trait Implementations§
impl<'a> Freeze for StructuredDataReader<'a>
impl<'a> !RefUnwindSafe for StructuredDataReader<'a>
impl<'a> !Send for StructuredDataReader<'a>
impl<'a> !Sync for StructuredDataReader<'a>
impl<'a> Unpin for StructuredDataReader<'a>
impl<'a> !UnwindSafe for StructuredDataReader<'a>
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
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>
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>
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>
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 more