pub enum LayoutProgress {
Complete(LayoutUpdate),
Provisional {
update: LayoutUpdate,
requests: Vec<MeasurementRequest>,
pending: usize,
},
Blocked {
requests: Vec<MeasurementRequest>,
pending: usize,
},
}Expand description
State reached by one Host-backed layout attempt.
Variants§
Complete(LayoutUpdate)
Every intrinsic measurement was final and geometry can be presented.
Provisional
Geometry used an explicit provisional policy and may be presented.
Fields
§
update: LayoutUpdateGeometry projected into the retained scene.
§
requests: Vec<MeasurementRequest>Cache-missing requests that should be sent in one Host batch.
Blocked
Geometry was withheld because at least one measurement had no fallback.
Fields
§
requests: Vec<MeasurementRequest>Cache-missing requests that should be sent in one Host batch.
Implementations§
Source§impl LayoutProgress
impl LayoutProgress
Sourcepub fn requests(&self) -> &[MeasurementRequest]
pub fn requests(&self) -> &[MeasurementRequest]
Returns requests that must be passed to RendererV1::measure_batch.
Sourcepub const fn has_layout(&self) -> bool
pub const fn has_layout(&self) -> bool
Returns whether geometry was committed to the retained scene.
Trait Implementations§
Source§impl Clone for LayoutProgress
impl Clone for LayoutProgress
Source§impl Debug for LayoutProgress
impl Debug for LayoutProgress
Source§impl PartialEq for LayoutProgress
impl PartialEq for LayoutProgress
impl StructuralPartialEq for LayoutProgress
Auto Trait Implementations§
impl Forget for LayoutProgress
impl Freeze for LayoutProgress
impl Move for LayoutProgress
impl RefUnwindSafe for LayoutProgress
impl Send for LayoutProgress
impl Sync for LayoutProgress
impl Unpin for LayoutProgress
impl UnsafeUnpin for LayoutProgress
impl UnwindSafe for LayoutProgress
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