Enum futures_core::never::Never [−][src]
pub enum Never {}A type with no possible values.
This is used to indicate values which can never be created, such as the error type of infallible futures.
This type is a stable equivalent to the ! type from std.
Methods
impl Never[src]
impl Neverpub fn never_into<T>(self) -> T[src]
pub fn never_into<T>(self) -> TConvert the Never type into any other type.
Trait Implementations
impl Debug for Never[src]
impl Debug for Neverfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Copy for Never[src]
impl Copy for Neverimpl Clone for Never[src]
impl Clone for Neverfn clone(&self) -> Never[src]
fn clone(&self) -> NeverReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Eq for Never[src]
impl Eq for Neverimpl PartialEq for Never[src]
impl PartialEq for Neverfn eq(&self, other: &Never) -> bool[src]
fn eq(&self, other: &Never) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Ord for Never[src]
impl Ord for Neverfn cmp(&self, other: &Never) -> Ordering[src]
fn cmp(&self, other: &Never) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl PartialOrd for Never[src]
impl PartialOrd for Neverfn partial_cmp(&self, other: &Never) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Never) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Future for Never[src]
impl Future for Nevertype Item = Never
A successful value
type Error = Never
An error
fn poll(&mut self, _: &mut Context) -> Poll<Never, Never>[src]
fn poll(&mut self, _: &mut Context) -> Poll<Never, Never>Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more
impl Stream for Never[src]
impl Stream for Nevertype Item = Never
Values yielded by the stream.
type Error = Never
Errors yielded by the stream.
fn poll_next(&mut self, _: &mut Context) -> Poll<Option<Never>, Never>[src]
fn poll_next(&mut self, _: &mut Context) -> Poll<Option<Never>, Never>Attempt to pull out the next value of this stream, registering the current task for wakeup if the value is not yet available, and returning None if the stream is exhausted. Read more