(&self, rng: &mut R)
| 42 | |
| 43 | impl Distribution<CustomError> for StandardUniform { |
| 44 | fn sample<R: rand::RngExt + ?Sized>(&self, rng: &mut R) -> CustomError { |
| 45 | match rng.random_range(0..4) { |
| 46 | 0 => CustomError::CustomOne, |
| 47 | 1 => CustomError::CustomTwo, |
| 48 | 2 => CustomError::CustomThree, |
| 49 | _ => CustomError::CustomFour, |
| 50 | } |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | /// Actix Web uses `ResponseError` for conversion of errors to a response |
nothing calls this directly
no outgoing calls
no test coverage detected