Struct ambient_api::core::ui::messages::FocusChanged
source · pub struct FocusChanged {
pub from_external: bool,
pub focus: String,
}
Expand description
FocusChanged: Focus has been updated
Fields§
§from_external: bool
§focus: String
Implementations§
source§impl FocusChanged
impl FocusChanged
Trait Implementations§
source§impl Clone for FocusChanged
impl Clone for FocusChanged
source§fn clone(&self) -> FocusChanged
fn clone(&self) -> FocusChanged
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 FocusChanged
impl Debug for FocusChanged
source§impl ModuleMessage for FocusChanged
impl ModuleMessage for FocusChanged
source§fn send_local_broadcast(&self, include_self: bool)
fn send_local_broadcast(&self, include_self: bool)
Sends a message to every package on this side. Read more
source§fn send_local(&self, target_id: EntityId)
fn send_local(&self, target_id: EntityId)
Sends a message to a specific package or module on this side.
source§fn send_server_unreliable(&self)
fn send_server_unreliable(&self)
Available on crate feature
client
only.Sends an unreliable message to the server. Read more
source§fn send_server_reliable(&self)
fn send_server_reliable(&self)
Available on crate feature
client
only.Sends a reliable message to the server. Read more
source§fn send_client_broadcast_unreliable(&self)
fn send_client_broadcast_unreliable(&self)
Available on crate feature
server
only.Sends an unreliable message to all clients. Read more
source§fn send_client_broadcast_reliable(&self)
fn send_client_broadcast_reliable(&self)
Available on crate feature
server
only.Sends a reliable message to all clients. Read more
source§fn send_client_targeted_unreliable(&self, user_id: String)
fn send_client_targeted_unreliable(&self, user_id: String)
Available on crate feature
server
only.Sends an unreliable message to a specific client. Read more
source§fn send_client_targeted_reliable(&self, user_id: String)
fn send_client_targeted_reliable(&self, user_id: String)
Available on crate feature
server
only.Sends a reliable message to a specific client. Read more
source§fn subscribe<R>(
callback: impl FnMut(MessageContext, Self) -> R + 'static
) -> Listenerwhere
R: CallbackReturn,
fn subscribe<R>(
callback: impl FnMut(MessageContext, Self) -> R + 'static
) -> Listenerwhere
R: CallbackReturn,
Subscribes to this Message. Wrapper around self::subscribe.
impl Message for FocusChanged
Auto Trait Implementations§
impl RefUnwindSafe for FocusChanged
impl Send for FocusChanged
impl Sync for FocusChanged
impl Unpin for FocusChanged
impl UnwindSafe for FocusChanged
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<T> Downcast for T
impl<T> Downcast for T
source§impl<T> ElementComponentName for T
impl<T> ElementComponentName for T
source§fn element_component_name(&self) -> &'static str
fn element_component_name(&self) -> &'static str
Returns the name of the type implementing ElementComponent.