Skip to main content

PolicyBatchFuture

Type Alias PolicyBatchFuture 

Source
pub type PolicyBatchFuture<'a> = Either<Ready<Result<Vec<bool>>>, BoxFuture<'a, Result<Vec<bool>>>>;
Expand description

Future type for batch policy evaluation.

  • Left(Ready<...>): Synchronous result, zero heap allocation
  • Right(BoxFuture<...>): Async result, requires heap allocation

Aliased Type§

pub enum PolicyBatchFuture<'a> {
    Left(Ready<Result<Vec<bool>, Error>>),
    Right(Pin<Box<dyn Future<Output = Result<Vec<bool>, Error>> + Send + 'a>>),
}

Variants§

§

Left(Ready<Result<Vec<bool>, Error>>)

First branch of the type

§

Right(Pin<Box<dyn Future<Output = Result<Vec<bool>, Error>> + Send + 'a>>)

Second branch of the type