pub struct TransactionMsg {Show 13 fields
pub document_id: DocumentId,
pub scene_ops: Vec<SceneMsg>,
pub frame_ops: Vec<FrameMsg>,
pub resource_updates: Vec<ResourceUpdate>,
pub generate_frame: GenerateFrame,
pub invalidate_rendered_frame: bool,
pub use_scene_builder_thread: bool,
pub low_priority: bool,
pub notifications: Vec<NotificationRequest>,
pub blob_rasterizer: Option<Box<dyn AsyncBlobImageRasterizer>>,
pub blob_requests: Vec<BlobImageParams>,
pub rasterized_blobs: Vec<(BlobImageRequest, BlobImageResult)>,
pub profile: TransactionProfile,
}
Expand description
Represents a transaction in the format sent through the channel.
Fields§
§document_id: DocumentId
§scene_ops: Vec<SceneMsg>
Changes that require re-building the scene.
frame_ops: Vec<FrameMsg>
Changes to animated properties that do not require re-building the scene.
resource_updates: Vec<ResourceUpdate>
Updates to resources that persist across display lists.
generate_frame: GenerateFrame
Whether to trigger frame building and rendering if something has changed.
invalidate_rendered_frame: bool
Whether to force frame building and rendering even if no changes are internally observed.
use_scene_builder_thread: bool
Whether to enforce that this transaction go through the scene builder.
low_priority: bool
§notifications: Vec<NotificationRequest>
Handlers to notify at certain points of the pipeline.
blob_rasterizer: Option<Box<dyn AsyncBlobImageRasterizer>>
§blob_requests: Vec<BlobImageParams>
§rasterized_blobs: Vec<(BlobImageRequest, BlobImageResult)>
§profile: TransactionProfile
Collect various data along the rendering pipeline to display it in the embedded profiler.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TransactionMsg
impl !RefUnwindSafe for TransactionMsg
impl Send for TransactionMsg
impl !Sync for TransactionMsg
impl Unpin for TransactionMsg
impl !UnwindSafe for TransactionMsg
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> 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 more