pub enum MdapConfigError {
InvalidK(u32),
InvalidTargetSuccessRate(f64),
InvalidParallelSamples(u32),
InvalidMaxSamples(u32),
InvalidMaxTokens(u32),
InvalidMaxDepth(u32),
FileNotFound(String),
ParseError(String),
}Expand description
Errors related to MDAP configuration
Variants§
InvalidK(u32)
Invalid k value.
InvalidTargetSuccessRate(f64)
Invalid target success rate.
InvalidParallelSamples(u32)
Invalid parallel samples count.
InvalidMaxSamples(u32)
Invalid max samples per subtask.
InvalidMaxTokens(u32)
Invalid max response tokens.
InvalidMaxDepth(u32)
Invalid max decomposition depth.
FileNotFound(String)
Configuration file not found.
ParseError(String)
Configuration parse error.
Trait Implementations§
Source§impl Debug for MdapConfigError
impl Debug for MdapConfigError
Source§impl Display for MdapConfigError
impl Display for MdapConfigError
Source§impl Error for MdapConfigError
impl Error for MdapConfigError
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 From<MdapConfigError> for MdapError
impl From<MdapConfigError> for MdapError
Source§fn from(source: MdapConfigError) -> Self
fn from(source: MdapConfigError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MdapConfigError
impl RefUnwindSafe for MdapConfigError
impl Send for MdapConfigError
impl Sync for MdapConfigError
impl Unpin for MdapConfigError
impl UnsafeUnpin for MdapConfigError
impl UnwindSafe for MdapConfigError
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