#[repr(C)]pub struct StructuredDataReader<'a> {Show 18 fields
pub error: Option<Error>,
pub roots: RootedVec<'a, Box<Heap<*mut JSObject>>>,
pub port_impls: Option<HashMap<NamespaceIndex<MessagePortIndex>, MessagePortImpl, FxBuildHasher>>,
pub transform_streams_port_impls: Option<HashMap<NamespaceIndex<MessagePortIndex>, TransformStreamData, FxBuildHasher>>,
pub blob_impls: Option<HashMap<NamespaceIndex<BlobIndex>, BlobImpl, FxBuildHasher>>,
pub files: Option<HashMap<NamespaceIndex<FileIndex>, SerializableFile, FxBuildHasher>>,
pub file_lists: Option<HashMap<NamespaceIndex<FileListIndex>, SerializableFileList, FxBuildHasher>>,
pub points: Option<HashMap<NamespaceIndex<DomPointIndex>, DomPoint, FxBuildHasher>>,
pub rects: Option<HashMap<NamespaceIndex<DomRectIndex>, DomRect, FxBuildHasher>>,
pub quads: Option<HashMap<NamespaceIndex<DomQuadIndex>, DomQuad, FxBuildHasher>>,
pub matrices: Option<HashMap<NamespaceIndex<DomMatrixIndex>, DomMatrix, FxBuildHasher>>,
pub exceptions: Option<HashMap<NamespaceIndex<DomExceptionIndex>, DomException, FxBuildHasher>>,
pub quota_exceeded_errors: Option<HashMap<NamespaceIndex<QuotaExceededErrorIndex>, SerializableQuotaExceededError, FxBuildHasher>>,
pub image_bitmaps: Option<HashMap<NamespaceIndex<ImageBitmapIndex>, SerializableImageBitmap, FxBuildHasher>>,
pub transferred_image_bitmaps: Option<HashMap<NamespaceIndex<ImageBitmapIndex>, SerializableImageBitmap, FxBuildHasher>>,
pub offscreen_canvases: Option<HashMap<NamespaceIndex<OffscreenCanvasIndex>, TransferableOffscreenCanvas, FxBuildHasher>>,
pub image_data: Option<HashMap<NamespaceIndex<ImageDataIndex>, SerializableImageData, FxBuildHasher>>,
pub crypto_keys: Option<HashMap<NamespaceIndex<CryptoKeyIndex>, SerializableCryptoKey, FxBuildHasher>>,
}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<NamespaceIndex<MessagePortIndex>, MessagePortImpl, FxBuildHasher>>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<NamespaceIndex<MessagePortIndex>, TransformStreamData, FxBuildHasher>>A map of transform stream implementations,
blob_impls: Option<HashMap<NamespaceIndex<BlobIndex>, BlobImpl, FxBuildHasher>>A map of blob implementations,
used as part of the “deserialize” steps of blobs,
to produce the DOM blobs stored in blobs above.
files: Option<HashMap<NamespaceIndex<FileIndex>, SerializableFile, FxBuildHasher>>A map of serialized files.
file_lists: Option<HashMap<NamespaceIndex<FileListIndex>, SerializableFileList, FxBuildHasher>>A map of serialized file lists.
points: Option<HashMap<NamespaceIndex<DomPointIndex>, DomPoint, FxBuildHasher>>A map of serialized points.
rects: Option<HashMap<NamespaceIndex<DomRectIndex>, DomRect, FxBuildHasher>>A map of serialized rects.
quads: Option<HashMap<NamespaceIndex<DomQuadIndex>, DomQuad, FxBuildHasher>>A map of serialized quads.
matrices: Option<HashMap<NamespaceIndex<DomMatrixIndex>, DomMatrix, FxBuildHasher>>A map of serialized matrices.
exceptions: Option<HashMap<NamespaceIndex<DomExceptionIndex>, DomException, FxBuildHasher>>A map of serialized exceptions.
quota_exceeded_errors: Option<HashMap<NamespaceIndex<QuotaExceededErrorIndex>, SerializableQuotaExceededError, FxBuildHasher>>A map of serialized quota exceeded errors.
image_bitmaps: Option<HashMap<NamespaceIndex<ImageBitmapIndex>, SerializableImageBitmap, FxBuildHasher>>§transferred_image_bitmaps: Option<HashMap<NamespaceIndex<ImageBitmapIndex>, SerializableImageBitmap, FxBuildHasher>>A map of transferred image bitmaps.
offscreen_canvases: Option<HashMap<NamespaceIndex<OffscreenCanvasIndex>, TransferableOffscreenCanvas, FxBuildHasher>>A map of transferred offscreen canvases.
image_data: Option<HashMap<NamespaceIndex<ImageDataIndex>, SerializableImageData, FxBuildHasher>>§crypto_keys: Option<HashMap<NamespaceIndex<CryptoKeyIndex>, SerializableCryptoKey, FxBuildHasher>>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> UnsafeUnpin 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> 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