pub struct OverlayCutOutcome {
pub overlay_id: u64,
pub result: Result<OverlayFrame, OverlayError>,
pub serviceability: CutServiceability,
}Expand description
What one OverlayCut of a segmented frame did.
Fields§
§overlay_id: u64The cut’s OverlayCut::overlay_id.
result: Result<OverlayFrame, OverlayError>OverlaySurface::record’s answer for this frame —
OverlayFrame::Skipped for every cut of a frame whose main segment
was not rendered (nothing was recorded for any overlay then).
serviceability: CutServiceabilityWhether the cut’s range was served on the overlay or kept on the main
surface, and why (cut_is_servable): a kept cut’s overlay recorded
an empty range, so its result is a transparent frame. The
classification SurfaceRenderer::encode_segmented made for the
frame — CutServiceability::Servable for a cut the frame’s encode
never classified (a plain SurfaceRenderer::encode).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OverlayCutOutcome
impl RefUnwindSafe for OverlayCutOutcome
impl Send for OverlayCutOutcome
impl Sync for OverlayCutOutcome
impl Unpin for OverlayCutOutcome
impl UnsafeUnpin for OverlayCutOutcome
impl UnwindSafe for OverlayCutOutcome
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