Skip to main content

NextCommand

Type Alias NextCommand 

Source
pub type NextCommand = Poll<Option<Result<(MethodId, Value), DeadlineExceeded>>>;

Aliased Type§

pub enum NextCommand {
    Ready(Option<Result<(Cow<'static, str>, Value), DeadlineExceeded>>),
    Pending,
}

Variants§

§1.36.0

Ready(Option<Result<(Cow<'static, str>, Value), DeadlineExceeded>>)

Represents that a value is immediately ready.

§1.36.0

Pending

Represents that a value is not ready yet.

When a function returns Pending, the function must also ensure that the current task is scheduled to be awoken when progress can be made.