[][src]Macro lifeline::impl_channel_take

macro_rules! impl_channel_take {
    ( $name:ty ) => { ... };
}

Specifies that this channel endpoint (Sender or Receiver) is taken. Provides a generic type T with the bounds required for the implementation.

Example:

use std::marker::PhantomData;
use lifeline::impl_channel_take;

struct ExampleReceiver<T> {
    _t: PhantomData<T>
}

impl_channel_take!(ExampleReceiver<T>);