futures::never

Type Alias Never

Source
pub type Never = Infallible;
Expand description

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.

This is currently an alias for std::convert::Infallible, but in the future it may be an alias for !. See “Future compatibility” section of std::convert::Infallible for more.

Aliased Type§

enum Never {}

Variants§

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 0 bytes (uninhabited)