#[derive(Debug, Clone, thiserror::Error)]
pub enum BulkheadError {
#[error("bulkhead is full: max concurrent calls ({max_concurrent_calls}) reached")]
BulkheadFull {
max_concurrent_calls: usize,
},
#[error("timeout waiting for bulkhead permit")]
Timeout,
}
pub type Result<T> = std::result::Result<T, BulkheadError>;