pub struct MpscUnboundedSpec;
Expand description
Specification for an unbounded MPSC channel
Corresponds to the constructor futures::channel::mpsc::unbounded
.
Call new_mq
on a value of this unit type.
(The new
method is provided for orthogonality.)
Implementations§
Source§impl MpscUnboundedSpec
impl MpscUnboundedSpec
pub const fn new() -> MpscUnboundedSpec
Trait Implementations§
Source§impl ChannelSpec for MpscUnboundedSpec
impl ChannelSpec for MpscUnboundedSpec
Source§type Sender<T: Debug + Send + 'static> = UnboundedSender<T>
type Sender<T: Debug + Send + 'static> = UnboundedSender<T>
The sending
Sink
for items of type T
.Source§type Receiver<T: Debug + Send + 'static> = UnboundedReceiver<T>
type Receiver<T: Debug + Send + 'static> = UnboundedReceiver<T>
The receiving
Stream
for items of type T
.Source§fn raw_channel<T: Debug + Send + 'static>(
self,
) -> (Self::Sender<T>, Self::Receiver<T>)
fn raw_channel<T: Debug + Send + 'static>( self, ) -> (Self::Sender<T>, Self::Receiver<T>)
Create a new raw channel as specified by
self
Source§impl Clone for MpscUnboundedSpec
impl Clone for MpscUnboundedSpec
Source§fn clone(&self) -> MpscUnboundedSpec
fn clone(&self) -> MpscUnboundedSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MpscUnboundedSpec
impl Debug for MpscUnboundedSpec
Source§impl Default for MpscUnboundedSpec
impl Default for MpscUnboundedSpec
Source§fn default() -> MpscUnboundedSpec
fn default() -> MpscUnboundedSpec
Returns the “default value” for a type. Read more
Source§impl Hash for MpscUnboundedSpec
impl Hash for MpscUnboundedSpec
Source§impl Ord for MpscUnboundedSpec
impl Ord for MpscUnboundedSpec
Source§fn cmp(&self, other: &MpscUnboundedSpec) -> Ordering
fn cmp(&self, other: &MpscUnboundedSpec) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MpscUnboundedSpec
impl PartialEq for MpscUnboundedSpec
Source§impl PartialOrd for MpscUnboundedSpec
impl PartialOrd for MpscUnboundedSpec
impl Copy for MpscUnboundedSpec
impl Eq for MpscUnboundedSpec
impl Sealed for MpscUnboundedSpec
impl StructuralPartialEq for MpscUnboundedSpec
Auto Trait Implementations§
impl Freeze for MpscUnboundedSpec
impl RefUnwindSafe for MpscUnboundedSpec
impl Send for MpscUnboundedSpec
impl Sync for MpscUnboundedSpec
impl Unpin for MpscUnboundedSpec
impl UnwindSafe for MpscUnboundedSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more