Struct iroh_bytes::util::progress::FlumeProgressSender
source · pub struct FlumeProgressSender<T> { /* private fields */ }Expand description
A progress sender that uses a flume channel.
Implementations§
Trait Implementations§
source§impl<T> Clone for FlumeProgressSender<T>
impl<T> Clone for FlumeProgressSender<T>
source§impl<T> Debug for FlumeProgressSender<T>
impl<T> Debug for FlumeProgressSender<T>
source§impl<T> IdGenerator for FlumeProgressSender<T>
impl<T> IdGenerator for FlumeProgressSender<T>
source§impl<T: Send + Sync + 'static> ProgressSender for FlumeProgressSender<T>
impl<T: Send + Sync + 'static> ProgressSender for FlumeProgressSender<T>
type Msg = T
type SendFuture<'a> = Pin<Box<dyn Future<Output = Result<(), ProgressSendError>> + Send + 'a>>
source§fn send(&self, msg: Self::Msg) -> Self::SendFuture<'_>
fn send(&self, msg: Self::Msg) -> Self::SendFuture<'_>
Send a message and wait if the receiver is full. Read more
source§fn try_send(&self, msg: Self::Msg) -> Result<(), ProgressSendError>
fn try_send(&self, msg: Self::Msg) -> Result<(), ProgressSendError>
Try to send a message and drop it if the receiver is full. Read more
source§fn blocking_send(&self, msg: Self::Msg) -> Result<(), ProgressSendError>
fn blocking_send(&self, msg: Self::Msg) -> Result<(), ProgressSendError>
Send a message and block if the receiver is full. Read more
Auto Trait Implementations§
impl<T> RefUnwindSafe for FlumeProgressSender<T>
impl<T> Send for FlumeProgressSender<T>where
T: Send,
impl<T> Sync for FlumeProgressSender<T>where
T: Send,
impl<T> Unpin for FlumeProgressSender<T>
impl<T> UnwindSafe for FlumeProgressSender<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