type EgressPermit = Either<Ready<Result<(DestinationRouting, ApplicationDataOut), Error>>, BoxFuture<'static, Result<(DestinationRouting, ApplicationDataOut), Error>>>;Expand description
The result of asking the PIX egress gate for permission to send one packet.
Left is the answer the gate could give synchronously — a permit, or a refusal because the
Session is being torn down. Right is the parked case, and the only one that allocates.
Aliased Type§
enum EgressPermit {
Left(Ready<Result<(DestinationRouting, ApplicationDataOut), Error>>),
Right(Pin<Box<dyn Future<Output = Result<(DestinationRouting, ApplicationDataOut), Error>> + Send>>),
}Variants§
Left(Ready<Result<(DestinationRouting, ApplicationDataOut), Error>>)
First branch of the type
Right(Pin<Box<dyn Future<Output = Result<(DestinationRouting, ApplicationDataOut), Error>> + Send>>)
Second branch of the type