pub struct Capture { /* private fields */ }Expand description
One captured frame of an output or a window, made by
Cx::capture, for ScreencopyView::of
views to show. It is a Copy handle, like a signal, and goes with the
context that made it. Calls on a capture whose context is gone do
nothing.
Every view of it shows the same frame, and none of them captures
anything itself, so a frame shown whole and cut into pieces is taken
once. A capture takes its frame at once, whether or not a view shows
it, and then wakes nothing until refresh. It holds
the source’s whole frame, at the source’s own resolution.
A capture of an output holds the shell’s own windows on it too, so hide a view of the output that covers it before you refresh.
Implementations§
Trait Implementations§
impl Copy for Capture
impl Eq for Capture
impl StructuralPartialEq for Capture
Auto Trait Implementations§
impl !Send for Capture
impl !Sync for Capture
impl Forget for Capture
impl Freeze for Capture
impl Move for Capture
impl RefUnwindSafe for Capture
impl Unpin for Capture
impl UnsafeUnpin for Capture
impl UnwindSafe for Capture
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