Enum ReceiverFlavor

pub(in ::sync::mpmc) enum ReceiverFlavor<T>

Receiver flavors.

Variants

Array(Receiver<Channel<T>>)

Bounded channel based on a preallocated array.

List(Receiver<Channel<T>>)

Unbounded channel implemented as a linked list.

Zero(Receiver<Channel<T>>)

Zero-capacity channel.

Auto Trait Implementations

impl<T> !RefUnwindSafe for ReceiverFlavor<T>

impl<T> !Send for ReceiverFlavor<T>

impl<T> !Sync for ReceiverFlavor<T>

impl<T> !UnwindSafe for ReceiverFlavor<T>

impl<T> Freeze for ReceiverFlavor<T> where Receiver<Channel<T>>: Freeze, Receiver<Channel<T>>: Freeze, Receiver<Channel<T>>: Freeze,

impl<T> Unpin for ReceiverFlavor<T> where Receiver<Channel<T>>: Unpin, Receiver<Channel<T>>: Unpin, Receiver<Channel<T>>: Unpin,

impl<T> UnsafeUnpin for ReceiverFlavor<T> where Receiver<Channel<T>>: UnsafeUnpin, Receiver<Channel<T>>: UnsafeUnpin, Receiver<Channel<T>>: UnsafeUnpin,

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

impl<T> From<T> for ReceiverFlavor<T>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> SizeHint for ReceiverFlavor<T> where T: ?Sized,

fn lower_bound(&self) -> usize
fn upper_bound(&self) -> Option<usize>

impl<T> SizedTypeProperties for ReceiverFlavor<T>

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

fn into(self) -> U

Calls U::from(self).

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

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

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

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

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