Struct iroh_blobs::util::progress::BoxedProgressSender
source · pub struct BoxedProgressSender<T>(/* private fields */);
Expand description
A boxed progress sender
Trait Implementations§
source§impl<T> Clone for BoxedProgressSender<T>
impl<T> Clone for BoxedProgressSender<T>
source§impl<T> Debug for BoxedProgressSender<T>
impl<T> Debug for BoxedProgressSender<T>
source§impl<T: Send + Sync + 'static> IdGenerator for BoxedProgressSender<T>
impl<T: Send + Sync + 'static> IdGenerator for BoxedProgressSender<T>
source§impl<T: Send + Sync + 'static> ProgressSender for BoxedProgressSender<T>
impl<T: Send + Sync + 'static> ProgressSender for BoxedProgressSender<T>
source§async fn send(&self, msg: T) -> ProgressSendResult<()>
async fn send(&self, msg: T) -> ProgressSendResult<()>
Send a message and wait if the receiver is full. Read more
source§fn try_send(&self, msg: T) -> ProgressSendResult<()>
fn try_send(&self, msg: T) -> ProgressSendResult<()>
Try to send a message and drop it if the receiver is full. Read more
source§fn blocking_send(&self, msg: T) -> ProgressSendResult<()>
fn blocking_send(&self, msg: T) -> ProgressSendResult<()>
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<T> Freeze for BoxedProgressSender<T>
impl<T> !RefUnwindSafe for BoxedProgressSender<T>
impl<T> Send for BoxedProgressSender<T>
impl<T> Sync for BoxedProgressSender<T>
impl<T> Unpin for BoxedProgressSender<T>
impl<T> !UnwindSafe for BoxedProgressSender<T>
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