pub struct StreamControlFuture { /* private fields */ }Expand description
Future for an AsyncSCStream lifecycle operation — start_capture,
stop_capture, update_configuration, or update_content_filter.
Resolves once ScreenCaptureKit acknowledges the operation. Awaiting it
never blocks the executor thread: the task is parked via its Waker
and resumed from the Swift completion callback. This mirrors the underlying
Swift Task { try await … } entry points, keeping the async surface
consistent end to end.
The operation is kicked off eagerly when the method is called (a “hot”
future), matching the rest of this module — e.g.
AsyncSCShareableContent::get. Dropping the future without awaiting is
safe; it simply means success/failure is not observed.
Trait Implementations§
Source§impl Debug for StreamControlFuture
impl Debug for StreamControlFuture
Source§impl Future for StreamControlFuture
impl Future for StreamControlFuture
Auto Trait Implementations§
impl Freeze for StreamControlFuture
impl RefUnwindSafe for StreamControlFuture
impl Send for StreamControlFuture
impl Sync for StreamControlFuture
impl Unpin for StreamControlFuture
impl UnsafeUnpin for StreamControlFuture
impl UnwindSafe for StreamControlFuture
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
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more