#[repr(C)]pub enum SCStreamOutputType {
Screen = 0,
Audio = 1,
Microphone = 2,
}Expand description
Type of output received from a capture stream
Used to distinguish between different types of captured data
when implementing SCStreamOutputTrait.
§Examples
use screencapturekit::stream::output_type::SCStreamOutputType;
fn handle_output(output_type: SCStreamOutputType) {
match output_type {
SCStreamOutputType::Screen => println!("Video frame"),
SCStreamOutputType::Audio => println!("Audio buffer"),
SCStreamOutputType::Microphone => println!("Microphone audio"),
}
}Variants§
Screen = 0
Video frame output
Audio = 1
System audio output
Microphone = 2
Microphone audio output (macOS 15.0+)
When using microphone capture, this output type allows separate handling of microphone audio from system audio.
Trait Implementations§
Source§impl Clone for SCStreamOutputType
impl Clone for SCStreamOutputType
Source§fn clone(&self) -> SCStreamOutputType
fn clone(&self) -> SCStreamOutputType
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 SCStreamOutputType
impl Debug for SCStreamOutputType
Source§impl Default for SCStreamOutputType
impl Default for SCStreamOutputType
Source§fn default() -> SCStreamOutputType
fn default() -> SCStreamOutputType
Returns the “default value” for a type. Read more
Source§impl Display for SCStreamOutputType
impl Display for SCStreamOutputType
Source§impl Hash for SCStreamOutputType
impl Hash for SCStreamOutputType
Source§impl PartialEq for SCStreamOutputType
impl PartialEq for SCStreamOutputType
impl Copy for SCStreamOutputType
impl Eq for SCStreamOutputType
impl StructuralPartialEq for SCStreamOutputType
Auto Trait Implementations§
impl Freeze for SCStreamOutputType
impl RefUnwindSafe for SCStreamOutputType
impl Send for SCStreamOutputType
impl Sync for SCStreamOutputType
impl Unpin for SCStreamOutputType
impl UnwindSafe for SCStreamOutputType
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