Struct iroh_bytes::util::progress::WithFilterMap
source · pub struct WithFilterMap<I, U, F>(/* private fields */);Expand description
Transform the message type by filter-mapping to the type of this sender.
Trait Implementations§
source§impl<I: ProgressSender, U: Send + Sync + 'static, F: Fn(U) -> Option<I::Msg> + Clone + Send + Sync + 'static> Clone for WithFilterMap<I, U, F>
impl<I: ProgressSender, U: Send + Sync + 'static, F: Fn(U) -> Option<I::Msg> + Clone + Send + Sync + 'static> Clone for WithFilterMap<I, U, F>
source§impl<I: ProgressSender, U: Send + Sync + 'static, F: Fn(U) -> Option<I::Msg> + Clone + Send + Sync + 'static> Debug for WithFilterMap<I, U, F>
impl<I: ProgressSender, U: Send + Sync + 'static, F: Fn(U) -> Option<I::Msg> + Clone + Send + Sync + 'static> Debug for WithFilterMap<I, U, F>
source§impl<I: IdGenerator, U, F> IdGenerator for WithFilterMap<I, U, F>
impl<I: IdGenerator, U, F> IdGenerator for WithFilterMap<I, U, F>
source§impl<I: ProgressSender, U: Send + Sync + 'static, F: Fn(U) -> Option<I::Msg> + Clone + Send + Sync + 'static> ProgressSender for WithFilterMap<I, U, F>
impl<I: ProgressSender, U: Send + Sync + 'static, F: Fn(U) -> Option<I::Msg> + Clone + Send + Sync + 'static> ProgressSender for WithFilterMap<I, U, F>
type Msg = U
type SendFuture<'a> = Either<<I as ProgressSender>::SendFuture<'a>, Ready<Result<(), ProgressSendError>>>
source§fn send(&self, msg: U) -> Self::SendFuture<'_>
fn send(&self, msg: U) -> Self::SendFuture<'_>
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> RefUnwindSafe for WithFilterMap<I, U, F>
impl<I, U, F> Send for WithFilterMap<I, U, F>
impl<I, U, F> Sync for WithFilterMap<I, U, F>
impl<I, U, F> Unpin for WithFilterMap<I, U, F>
impl<I, U, F> UnwindSafe for WithFilterMap<I, U, F>
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