[][src]Struct azul_webrender_api::TransactionMsg

pub struct TransactionMsg {
    pub scene_ops: Vec<SceneMsg>,
    pub frame_ops: Vec<FrameMsg>,
    pub resource_updates: Vec<ResourceUpdate>,
    pub generate_frame: bool,
    pub invalidate_rendered_frame: bool,
    pub use_scene_builder_thread: bool,
    pub low_priority: bool,
    pub notifications: Vec<NotificationRequest>,
}

Represents a transaction in the format sent through the channel.

Fields

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: bool

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.

Implementations

impl TransactionMsg[src]

pub fn is_empty(&self) -> bool[src]

Returns true if this transaction has no effect.

pub fn frame_message(msg: FrameMsg) -> Self[src]

Creates a transaction message from a single frame message.

pub fn scene_message(msg: SceneMsg) -> Self[src]

Creates a transaction message from a single scene message.

Trait Implementations

impl Clone for TransactionMsg[src]

impl Debug for TransactionMsg[src]

impl<'de> Deserialize<'de> for TransactionMsg[src]

impl Serialize for TransactionMsg[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.