#[repr(i32)]pub enum SCFrameStatus {
Complete = 0,
Idle = 1,
Blank = 2,
Suspended = 3,
Started = 4,
Stopped = 5,
}Expand description
Frame status for captured screen content
Indicates the state of a frame captured by ScreenCaptureKit.
This maps to Apple’s SCFrameStatus enum.
Variants§
Complete = 0
Frame contains complete content
Idle = 1
Frame is idle (no changes)
Blank = 2
Frame is blank
Suspended = 3
Frame is suspended
Started = 4
Started (first frame)
Stopped = 5
Stopped (last frame)
Implementations§
Source§impl SCFrameStatus
impl SCFrameStatus
Sourcepub const fn has_content(self) -> bool
pub const fn has_content(self) -> bool
Returns true if the frame contains actual content
Sourcepub const fn is_complete(self) -> bool
pub const fn is_complete(self) -> bool
Returns true if the frame is complete
Trait Implementations§
Source§impl Clone for SCFrameStatus
impl Clone for SCFrameStatus
Source§fn clone(&self) -> SCFrameStatus
fn clone(&self) -> SCFrameStatus
Returns a duplicate 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 SCFrameStatus
impl Debug for SCFrameStatus
Source§impl Default for SCFrameStatus
impl Default for SCFrameStatus
Source§fn default() -> SCFrameStatus
fn default() -> SCFrameStatus
Returns the “default value” for a type. Read more
Source§impl Display for SCFrameStatus
impl Display for SCFrameStatus
Source§impl Hash for SCFrameStatus
impl Hash for SCFrameStatus
Source§impl PartialEq for SCFrameStatus
impl PartialEq for SCFrameStatus
impl Copy for SCFrameStatus
impl Eq for SCFrameStatus
impl StructuralPartialEq for SCFrameStatus
Auto Trait Implementations§
impl Freeze for SCFrameStatus
impl RefUnwindSafe for SCFrameStatus
impl Send for SCFrameStatus
impl Sync for SCFrameStatus
impl Unpin for SCFrameStatus
impl UnwindSafe for SCFrameStatus
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