Enum flow_sdk::algorithms::rand::distributions::WeightedError [−][src]
pub enum WeightedError {
NoItem,
NegativeWeight,
AllWeightsZero,
}
Expand description
Error type returned from WeightedIndex::new
.
Variants
The provided iterator contained no items.
A weight lower than zero was used.
All items in the provided iterator had a weight of zero.
Trait Implementations
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
The lower-level source of this error, if any. Read more
Auto Trait Implementations
impl RefUnwindSafe for WeightedError
impl Send for WeightedError
impl Sync for WeightedError
impl Unpin for WeightedError
impl UnwindSafe for WeightedError
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Wrap the input message T
in a tonic::Request
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more