Struct iroh_bytes::util::progress::IgnoreProgressSender
source · pub struct IgnoreProgressSender<T>(/* private fields */);Expand description
A no-op progress sender.
Trait Implementations§
source§impl<T> Clone for IgnoreProgressSender<T>
impl<T> Clone for IgnoreProgressSender<T>
source§impl<T> Debug for IgnoreProgressSender<T>
impl<T> Debug for IgnoreProgressSender<T>
source§impl<T> Default for IgnoreProgressSender<T>
impl<T> Default for IgnoreProgressSender<T>
source§impl<T> IdGenerator for IgnoreProgressSender<T>
impl<T> IdGenerator for IgnoreProgressSender<T>
source§impl<T: Send + Sync + 'static> ProgressSender for IgnoreProgressSender<T>
impl<T: Send + Sync + 'static> ProgressSender for IgnoreProgressSender<T>
type Msg = T
type SendFuture<'a> = Ready<Result<(), ProgressSendError>>
source§fn send(&self, _msg: T) -> Self::SendFuture<'_>
fn send(&self, _msg: T) -> Self::SendFuture<'_>
Send a message and wait if the receiver is full. Read more
source§fn try_send(&self, _msg: T) -> Result<(), ProgressSendError>
fn try_send(&self, _msg: T) -> Result<(), ProgressSendError>
Try to send a message and drop it if the receiver is full. Read more
source§fn blocking_send(&self, _msg: T) -> Result<(), ProgressSendError>
fn blocking_send(&self, _msg: T) -> Result<(), ProgressSendError>
Send a message and block if the receiver is full. Read more
Auto Trait Implementations§
impl<T> RefUnwindSafe for IgnoreProgressSender<T>where
T: RefUnwindSafe,
impl<T> Send for IgnoreProgressSender<T>where
T: Send,
impl<T> Sync for IgnoreProgressSender<T>where
T: Sync,
impl<T> Unpin for IgnoreProgressSender<T>where
T: Unpin,
impl<T> UnwindSafe for IgnoreProgressSender<T>where
T: UnwindSafe,
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