Skip to main content

PolledResult

Type Alias PolledResult 

Source
pub type PolledResult<O, I> = Poll<Result<Status<O, <I as Positioned>::Locator>, <I as TryStream>::Error>>;
Expand description

The result type for poll_parse.

Aliased Type§

pub enum PolledResult<O, I> {
    Ready(Result<Status<O, <I as Positioned>::Locator>, <I as TryStream>::Error>),
    Pending,
}

Variants§

§1.36.0

Ready(Result<Status<O, <I as Positioned>::Locator>, <I as TryStream>::Error>)

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.