pub struct UiSender<T> { /* private fields */ }Expand description
Transferable producer for a bounded UI channel. Its callback stays local.
Implementations§
Source§impl<T: Send + 'static> UiSender<T>
impl<T: Send + 'static> UiSender<T>
Sourcepub fn try_send(&self, value: T) -> Result<(), TrySendError<T>>
pub fn try_send(&self, value: T) -> Result<(), TrySendError<T>>
Enqueue immediately, reporting Full or Closed without losing the value.
Sourcepub fn send(&self, value: T) -> SendFuture<'_, T> ⓘ
pub fn send(&self, value: T) -> SendFuture<'_, T> ⓘ
Wait for capacity without blocking the UI or an executor thread.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for UiSender<T>
impl<T> RefUnwindSafe for UiSender<T>
impl<T> Send for UiSender<T>
impl<T> Sync for UiSender<T>
impl<T> Unpin for UiSender<T>
impl<T> UnsafeUnpin for UiSender<T>
impl<T> UnwindSafe for UiSender<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.