Struct egui_inbox::UiInboxSender
source · pub struct UiInboxSender<T> { /* private fields */ }
Expand description
Sender for UiInbox.
Implementations§
source§impl<T> UiInboxSender<T>
impl<T> UiInboxSender<T>
sourcepub fn send(&self, item: T) -> Result<(), SendError<T>>
pub fn send(&self, item: T) -> Result<(), SendError<T>>
Send an item to the inbox.
Calling this will request a repaint from egui.
If this is called before a call to UiInbox::read
was done, no repaint is requested
(Since we didn’t have a chance to get a reference to [Context] yet).
This returns an error if the inbox was dropped.
Trait Implementations§
source§impl<T> Clone for UiInboxSender<T>
impl<T> Clone for UiInboxSender<T>
Auto Trait Implementations§
impl<T> Freeze for UiInboxSender<T>
impl<T> !RefUnwindSafe for UiInboxSender<T>
impl<T> Send for UiInboxSender<T>where
T: Send,
impl<T> Sync for UiInboxSender<T>where
T: Send,
impl<T> Unpin for UiInboxSender<T>
impl<T> !UnwindSafe for UiInboxSender<T>
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