Macro lifeline::impl_channel_clone [−][src]
Specifies that this channel endpoint (Sender or Receiver) is clonable. Provides a generic type T with the bounds required for the implementation.
Example:
use std::marker::PhantomData; use lifeline::impl_channel_clone; struct ExampleReceiver<T> { _t: PhantomData<T> } impl<T> Clone for ExampleReceiver<T> { fn clone(&self) -> Self { Self { _t: PhantomData } } } impl_channel_clone!(ExampleReceiver<T>);