pub struct MicroBlockingSender<T> { /* private fields */ }
Expand description
A variant of a NonBlockingSender
which can block but only for very short durations of time, much like the
channel in std
or flume
. Holding this variant of sender does not mean that the receiver will ever block
when receiving - the receiver provided by this crate will never block.
Implementations§
Source§impl<T> MicroBlockingSender<T>
impl<T> MicroBlockingSender<T>
Sourcepub fn try_send(&self, message: T) -> SendResult<T>
pub fn try_send(&self, message: T) -> SendResult<T>
Adds a state change to the set of changes to enact before the next frame.
This operation is submitted to the GPU only when RenderData::submit_changes
is called on the main thread.
This method blocks, but only briefly, and so should not be used on the main thread of a web application.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for MicroBlockingSender<T>
impl<T> RefUnwindSafe for MicroBlockingSender<T>
impl<T> Send for MicroBlockingSender<T>where
T: Send,
impl<T> Sync for MicroBlockingSender<T>where
T: Send,
impl<T> Unpin for MicroBlockingSender<T>
impl<T> UnwindSafe for MicroBlockingSender<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