pub enum CaptureEvent {
Video(VideoFrame),
Audio(AudioFrame),
Gap(GapEvent),
End,
}Expand description
What CaptureSession::next_event
yields.
Variants§
Video(VideoFrame)
Audio(AudioFrame)
Gap(GapEvent)
End
The stream ended and no further events will arrive.
Trait Implementations§
Source§impl Clone for CaptureEvent
impl Clone for CaptureEvent
Source§fn clone(&self) -> CaptureEvent
fn clone(&self) -> CaptureEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CaptureEvent
impl Debug for CaptureEvent
Source§impl PartialEq for CaptureEvent
impl PartialEq for CaptureEvent
Source§fn eq(&self, other: &CaptureEvent) -> bool
fn eq(&self, other: &CaptureEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CaptureEvent
Auto Trait Implementations§
impl Freeze for CaptureEvent
impl RefUnwindSafe for CaptureEvent
impl Send for CaptureEvent
impl Sync for CaptureEvent
impl Unpin for CaptureEvent
impl UnsafeUnpin for CaptureEvent
impl UnwindSafe for CaptureEvent
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