Struct oxygengine_user_interface::raui::core::signals::SignalSender
source · pub struct SignalSender { /* private fields */ }
Expand description
Used to send Signal
s from a component change context
Implementations§
source§impl SignalSender
impl SignalSender
sourcepub fn write<T>(&self, message: T) -> boolwhere
T: 'static + MessageData,
pub fn write<T>(&self, message: T) -> boolwhere T: 'static + MessageData,
Send a message
Returns false
if the message could not successfully be sent
sourcepub fn write_raw(&self, message: Box<dyn MessageData, Global>) -> bool
pub fn write_raw(&self, message: Box<dyn MessageData, Global>) -> bool
Send a raw Message
Returns false
if the message could not be successfully sent
sourcepub fn write_raw_all<I>(&self, messages: I)where
I: IntoIterator<Item = Box<dyn MessageData, Global>>,
pub fn write_raw_all<I>(&self, messages: I)where I: IntoIterator<Item = Box<dyn MessageData, Global>>,
Sends a set of raw Message
s from an iterator
Trait Implementations§
source§impl Clone for SignalSender
impl Clone for SignalSender
source§fn clone(&self) -> SignalSender
fn clone(&self) -> SignalSender
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 moreAuto Trait Implementations§
impl RefUnwindSafe for SignalSender
impl Send for SignalSender
impl Sync for SignalSender
impl Unpin for SignalSender
impl UnwindSafe for SignalSender
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