Struct ambient_guest_bridge::core::messages::WindowFocusChange
source · pub struct WindowFocusChange {
pub focused: bool,
}
Expand description
WindowFocusChange: Sent when the window gains or loses focus.
Fields§
§focused: bool
Implementations§
source§impl WindowFocusChange
impl WindowFocusChange
pub fn new(focused: impl Into<bool>) -> WindowFocusChange
Trait Implementations§
source§impl Clone for WindowFocusChange
impl Clone for WindowFocusChange
source§fn clone(&self) -> WindowFocusChange
fn clone(&self) -> WindowFocusChange
Returns a copy 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 WindowFocusChange
impl Debug for WindowFocusChange
source§impl RuntimeMessage for WindowFocusChange
impl RuntimeMessage for WindowFocusChange
source§fn subscribe<R>(callback: impl FnMut(Self) -> R + 'static) -> Listenerwhere
R: CallbackReturn,
fn subscribe<R>(callback: impl FnMut(Self) -> R + 'static) -> Listenerwhere
R: CallbackReturn,
Subscribes to this Message. Wrapper around self::subscribe.
impl Message for WindowFocusChange
Auto Trait Implementations§
impl RefUnwindSafe for WindowFocusChange
impl Send for WindowFocusChange
impl Sync for WindowFocusChange
impl Unpin for WindowFocusChange
impl UnwindSafe for WindowFocusChange
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