Struct GroupChannelBuilder

Source
pub struct GroupChannelBuilder<Tx, Rx, D> { /* private fields */ }

Implementations§

Source§

impl<Tx, Rx, D> GroupChannelBuilder<Tx, Rx, D>
where Tx: Clone + Sink<((), TaskType)> + Unpin + Send + Sync + 'static, Rx: Stream<Item = ((), TaskType)> + Unpin,

Source

pub fn build<G>(self) -> (Executor<Tx, G>, impl Future<Output = ()>)
where G: Hash + Eq + Clone + Debug + Send + Sync + 'static,

Auto Trait Implementations§

§

impl<Tx, Rx, D> Freeze for GroupChannelBuilder<Tx, Rx, D>
where Tx: Freeze, Rx: Freeze,

§

impl<Tx, Rx, D> RefUnwindSafe for GroupChannelBuilder<Tx, Rx, D>

§

impl<Tx, Rx, D> Send for GroupChannelBuilder<Tx, Rx, D>
where Tx: Send, Rx: Send, D: Send,

§

impl<Tx, Rx, D> Sync for GroupChannelBuilder<Tx, Rx, D>
where Tx: Sync, Rx: Sync, D: Sync,

§

impl<Tx, Rx, D> Unpin for GroupChannelBuilder<Tx, Rx, D>
where Tx: Unpin, Rx: Unpin, D: Unpin,

§

impl<Tx, Rx, D> UnwindSafe for GroupChannelBuilder<Tx, Rx, D>
where Tx: UnwindSafe, Rx: UnwindSafe, D: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> QueueExt for T
where T: ?Sized,

Source§

fn queue_stream<Item, F>(self, f: F) -> QueueStream<Self, Item, F>
where Self: Sized + Unpin, F: Fn(Pin<&mut Self>, &mut Context<'_>) -> Poll<Option<Item>>,

Source§

fn queue_sender<Item, F, R>(self, f: F) -> QueueSender<Self, Item, F, R>
where Self: Sized + Waker, F: Fn(&mut Self, Action<Item>) -> Reply<R>,

Source§

fn queue_channel<Item, F1, R, F2>( self, f1: F1, f2: F2, ) -> (QueueSender<QueueStream<Self, Item, F2>, Item, F1, R>, QueueStream<Self, Item, F2>)
where Self: Sized + Unpin + Clone, F1: Fn(&mut QueueStream<Self, Item, F2>, Action<Item>) -> Reply<R>, F2: Fn(Pin<&mut Self>, &mut Context<'_>) -> Poll<Option<Item>> + Clone + Unpin,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.