Skip to main content

derive_deftly_template_ErasedSinkTrySendError

Macro derive_deftly_template_ErasedSinkTrySendError 

Source
macro_rules! derive_deftly_template_ErasedSinkTrySendError {
    ({ $($driver:tt)* } [$($aoptions:tt)*] ($($future:tt)*) $($tpassthrough:tt)*) => { ... };
    ($($wrong:tt)*) => { ... };
}
Expand description

Implements various things which handle full and disconnected

ยงGenerates

  • SinkTrySendError forErasedSinkTrySendError`
  • From<E: SinkTrySendError> forErasedSinkTrySendError`
  • handle_mpsc_error

Use of macros avoids copypaste errors like fn is_full(..) { self.is_disconnected() }.

This is a derive_deftly template. Do not invoke it directly. To use it, write: #[derive(Deftly)] #[derive_deftly(ErasedSinkTrySendError)].