pub struct FrameFanout { /* private fields */ }Expand description
The live-frame fan-out for one browser.
Implementations§
Source§impl FrameFanout
impl FrameFanout
pub fn new(width: u32, height: u32, default_quality: i64) -> Self
Sourcepub fn set_blackout(&self, active: bool)
pub fn set_blackout(&self, active: bool)
Mirror of the control state’s blackout predicate. Called on every control-state change.
pub fn blackout_active(&self) -> bool
Sourcepub async fn bind(&self, backend: Arc<ChromiumBackend>)
pub async fn bind(&self, backend: Arc<ChromiumBackend>)
Point the fan-out at a launched browser. Called once the assistant’s Chromium actually exists; starts capture immediately if anyone is already subscribed (the drawer opened first, the browser launched second — the ordinary case for the standing session).
Sourcepub async fn subscribe(
&self,
audience: FrameAudience,
) -> (FrameReceiver, Instant)
pub async fn subscribe( &self, audience: FrameAudience, ) -> (FrameReceiver, Instant)
Register a consumer. The first one starts CDP capture (via the supervisor); dropping the returned receiver deregisters it at the next frame. Returns the epoch its frames are timestamped against.
Sourcepub async fn set_quality(&self, quality: i64)
pub async fn set_quality(&self, quality: i64)
Re-capture at quality. A no-op when it already matches; otherwise
the current pump generation is stopped so the supervisor re-attaches
at the new quality. Consumers keep their subscriptions across it.
This exists because ONE pump now serves both the drawer and
browser_record_start, whose documented quality parameter would
otherwise silently stop having an effect.
Auto Trait Implementations§
impl !Freeze for FrameFanout
impl !RefUnwindSafe for FrameFanout
impl !UnwindSafe for FrameFanout
impl Send for FrameFanout
impl Sync for FrameFanout
impl Unpin for FrameFanout
impl UnsafeUnpin for FrameFanout
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more