Enum crabgrab::capture_stream::StreamEvent
source · pub enum StreamEvent {
Audio(AudioFrame),
Video(VideoFrame),
Idle,
End,
}
Expand description
Represents an event in a capture stream
Variants§
Audio(AudioFrame)
This event is produced when the stream receives a new audio packet
Video(VideoFrame)
This event is produced when the stream receives a new video frame
Idle
This event is produced when the stream goes idle - IE when no new frames are expected for some time, like when a window minimizes
End
This event is produced once at the end of the stream
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamEvent
impl !RefUnwindSafe for StreamEvent
impl Send for StreamEvent
impl Sync for StreamEvent
impl Unpin for StreamEvent
impl !UnwindSafe for StreamEvent
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