pub struct CompositionBatch { /* private fields */ }Expand description
Represents a group of composition changes that are applied by the server compositor atomically. This is the handle the UI thread keeps; it can be shared with any thread.
Implementations§
Source§impl CompositionBatch
impl CompositionBatch
Sourcepub fn sequence_id(&self) -> i64
pub fn sequence_id(&self) -> i64
The process-wide sequence number of the batch.
Sourcepub fn processed(&self) -> &BatchCompletion
pub fn processed(&self) -> &BatchCompletion
Indicates that the batch got deserialized on the render thread and will soon be rendered. It’s generally a good time to start producing the next one.
To allow timing-sensitive code to receive the notification in time, continuations run synchronously on the render thread, so they should be as short as possible.
Sourcepub fn rendered(&self) -> &BatchCompletion
pub fn rendered(&self) -> &BatchCompletion
Indicates that the batch got rendered on the render thread.
To allow timing-sensitive code to receive the notification in time, continuations run synchronously on the render thread, so they should be as short as possible.
Auto Trait Implementations§
impl !Freeze for CompositionBatch
impl RefUnwindSafe for CompositionBatch
impl Send for CompositionBatch
impl Sync for CompositionBatch
impl Unpin for CompositionBatch
impl UnsafeUnpin for CompositionBatch
impl UnwindSafe for CompositionBatch
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more