circuit
Types
pub type CallResult {
Success
Failure(reason: String)
}
Constructors
-
Success -
Failure(reason: String)
pub type CircuitState {
Closed
Open
HalfOpen
}
Constructors
-
Closed -
Open -
HalfOpen
pub type Config {
Config(
failure_threshold: Int,
window_size: Int,
reset_timeout: Int,
)
}
Constructors
-
Config( failure_threshold: Int, window_size: Int, reset_timeout: Int, )