pub enum BehavioralError {
InvalidAlpha(f64),
InvalidThreshold(f64),
InvalidMaxTools,
InvalidMaxAgents,
InvalidSnapshot(String),
}Expand description
Errors from behavioral tracking operations.
Variants§
InvalidAlpha(f64)
Alpha must be in (0.0, 1.0].
InvalidThreshold(f64)
Threshold must be positive and finite.
InvalidMaxTools
max_tools_per_agent must be > 0.
InvalidMaxAgents
max_agents must be > 0.
InvalidSnapshot(String)
Snapshot contains invalid data.
Trait Implementations§
Source§impl Clone for BehavioralError
impl Clone for BehavioralError
Source§fn clone(&self) -> BehavioralError
fn clone(&self) -> BehavioralError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BehavioralError
impl Debug for BehavioralError
Source§impl Display for BehavioralError
impl Display for BehavioralError
Source§impl Error for BehavioralError
impl Error for BehavioralError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for BehavioralError
impl PartialEq for BehavioralError
impl StructuralPartialEq for BehavioralError
Auto Trait Implementations§
impl Freeze for BehavioralError
impl RefUnwindSafe for BehavioralError
impl Send for BehavioralError
impl Sync for BehavioralError
impl Unpin for BehavioralError
impl UnsafeUnpin for BehavioralError
impl UnwindSafe for BehavioralError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more