Struct iroh_blobs::util::progress::WithMap
source · 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
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