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
Represents that a value is immediately ready.
Represents that a value is not ready yet.
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.