pub struct WithMap<I: ProgressSender, U: Send + Sync + 'static, F: Fn(U) -> I::Msg + Clone + Send + Sync + 'static>(/* private fields */);
Expand description
Transform the message type by mapping to the type of this sender.
Trait Implementations§
Source§impl<I: ProgressSender, U: Send + Sync + 'static, F: Fn(U) -> I::Msg + Clone + Send + Sync + 'static> Clone for WithMap<I, U, F>
impl<I: ProgressSender, U: Send + Sync + 'static, F: Fn(U) -> I::Msg + Clone + Send + Sync + 'static> Clone for WithMap<I, U, F>
Source§impl<I: ProgressSender, U: Send + Sync + 'static, F: Fn(U) -> I::Msg + Clone + Send + Sync + 'static> Debug for WithMap<I, U, F>
impl<I: ProgressSender, U: Send + Sync + 'static, F: Fn(U) -> I::Msg + Clone + Send + Sync + 'static> Debug for WithMap<I, U, F>
Source§impl<I: IdGenerator + ProgressSender, U: Send + Sync + 'static, F: Fn(U) -> I::Msg + Clone + Send + Sync + 'static> IdGenerator for WithMap<I, U, F>
impl<I: IdGenerator + ProgressSender, U: Send + Sync + 'static, F: Fn(U) -> I::Msg + Clone + Send + Sync + 'static> IdGenerator for WithMap<I, U, F>
Source§impl<I: ProgressSender, U: Send + Sync + 'static, F: Fn(U) -> I::Msg + Clone + Send + Sync + 'static> ProgressSender for WithMap<I, U, F>
impl<I: ProgressSender, U: Send + Sync + 'static, F: Fn(U) -> I::Msg + Clone + Send + Sync + 'static> ProgressSender for WithMap<I, U, F>
Source§async fn send(&self, msg: U) -> Result<(), ProgressSendError>
async fn send(&self, msg: U) -> Result<(), ProgressSendError>
Send a message and wait if the receiver is full. Read more
Source§fn try_send(&self, msg: U) -> Result<(), ProgressSendError>
fn try_send(&self, msg: U) -> Result<(), ProgressSendError>
Try to send a message and drop it if the receiver is full. Read more
Source§fn blocking_send(&self, msg: U) -> Result<(), ProgressSendError>
fn blocking_send(&self, msg: U) -> Result<(), ProgressSendError>
Send a message and block if the receiver is full. Read more
Source§fn with_map<U: Send + Sync + 'static, F: Fn(U) -> Self::Msg + Send + Sync + Clone + 'static>(
self,
f: F,
) -> WithMap<Self, U, F>
fn with_map<U: Send + Sync + 'static, F: Fn(U) -> Self::Msg + Send + Sync + Clone + 'static>( self, f: F, ) -> WithMap<Self, U, F>
Transform the message type by mapping to the type of this sender.
Source§fn with_filter_map<U: Send + Sync + 'static, F: Fn(U) -> Option<Self::Msg> + Send + Sync + Clone + 'static>(
self,
f: F,
) -> WithFilterMap<Self, U, F>
fn with_filter_map<U: Send + Sync + 'static, F: Fn(U) -> Option<Self::Msg> + Send + Sync + Clone + 'static>( self, f: F, ) -> WithFilterMap<Self, U, F>
Transform the message type by filter-mapping to the type of this sender.
Source§fn boxed(self) -> BoxedProgressSender<Self::Msg>where
Self: IdGenerator,
fn boxed(self) -> BoxedProgressSender<Self::Msg>where
Self: IdGenerator,
Create a boxed progress sender to get rid of the concrete type.
Auto Trait Implementations§
impl<I, U, F> Freeze for WithMap<I, U, F>
impl<I, U, F> RefUnwindSafe for WithMap<I, U, F>
impl<I, U, F> Send for WithMap<I, U, F>
impl<I, U, F> Sync for WithMap<I, U, F>
impl<I, U, F> Unpin for WithMap<I, U, F>
impl<I, U, F> UnwindSafe for WithMap<I, U, F>
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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