Enum zng_view_api::window::FrameCapture
source · pub enum FrameCapture {
None,
Full,
Mask(ImageMaskMode),
}Expand description
Frame image capture request.
Variants§
None
Don’t capture the frame.
Full
Captures a full BGRA8 image.
Mask(ImageMaskMode)
Captures an A8 mask image.
Trait Implementations§
source§impl Clone for FrameCapture
impl Clone for FrameCapture
source§fn clone(&self) -> FrameCapture
fn clone(&self) -> FrameCapture
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for FrameCapture
impl Debug for FrameCapture
source§impl Default for FrameCapture
impl Default for FrameCapture
source§fn default() -> FrameCapture
fn default() -> FrameCapture
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for FrameCapture
impl<'de> Deserialize<'de> for FrameCapture
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for FrameCapture
impl PartialEq for FrameCapture
source§fn eq(&self, other: &FrameCapture) -> bool
fn eq(&self, other: &FrameCapture) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for FrameCapture
impl Serialize for FrameCapture
impl Copy for FrameCapture
impl Eq for FrameCapture
impl StructuralPartialEq for FrameCapture
Auto Trait Implementations§
impl Freeze for FrameCapture
impl RefUnwindSafe for FrameCapture
impl Send for FrameCapture
impl Sync for FrameCapture
impl Unpin for FrameCapture
impl UnwindSafe for FrameCapture
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