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 allocationRight(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>>),
}