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
sourceimpl 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 + 'static, Global>) -> bool
pub fn write_raw(&self, message: Box<dyn MessageData + 'static, 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 + 'static, Global>>,
pub fn write_raw_all<I>(&self, messages: I)where
I: IntoIterator<Item = Box<dyn MessageData + 'static, Global>>,
Sends a set of raw Message
s from an iterator
Trait Implementations
sourceimpl Clone for SignalSender
impl Clone for SignalSender
sourcefn clone(&self) -> SignalSender
fn clone(&self) -> SignalSender
Returns a copy of the value. Read more
1.0.0 · sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more