pub(crate) struct ResolvedWindow {
pub(crate) id: u32,
pub(crate) pid: u32,
pub(crate) title: String,
pub(crate) tier: CaptureTier,
pub(crate) is_agentmux: bool,
pub(crate) is_self: bool,
pub(crate) same_title: usize,
}Expand description
The window CaptureWindow was asked for, found among every window and checked against its tier. Holds no OS
window, so the caller can ask srv for the window’s private rectangles before the frame is taken
(window_blackout) without holding one across a wait.
index: None with more than one title_contains match is an error
listing every candidate, NOT a silent pick of match 0 — see
docs/reports/REPORT_AGENT_SCREENSHOT_WINDOW_CONTROL_BLOCKERS_2026_08_24.md
§1 for the real incident (an ambiguous match silently captured an
unrelated, sensitive window) this specifically fixes. index: Some(i)
is still honored directly against whatever matched, unchanged from the
original behavior, for callers who already disambiguate explicitly.
Fields§
§id: u32The OS window’s id, to find it again for the frame.
pid: u32§title: String§tier: CaptureTier§is_agentmux: bool§is_self: bool§same_title: usizeHow many of this AgentMux’s own windows have this title, the target included.
Auto Trait Implementations§
impl Freeze for ResolvedWindow
impl RefUnwindSafe for ResolvedWindow
impl Send for ResolvedWindow
impl Sync for ResolvedWindow
impl Unpin for ResolvedWindow
impl UnsafeUnpin for ResolvedWindow
impl UnwindSafe for ResolvedWindow
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.