Enum async_ffi::FfiPoll[][src]

#[repr(C, u8)]
pub enum FfiPoll<T> {
    Ready(T),
    Pending,
    Panicked,
}
Expand description

The FFI compatible std::task::Poll

Variants

Ready(T)

Represents that a value is immediately ready.

Tuple Fields of Ready

0: T
Pending

Represents that a value is not ready yet.

Panicked

Represents that the future panicked

Implementations

Converts a std::task::Poll to the FfiPoll.

Try to convert a FfiPoll back to the std::task::Poll.

Returns Err(PollPanicked) if the result indicates the poll function panicked.

Trait Implementations

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.