pub enum ScalingError {
Io {
message: String,
source: Error,
},
Path {
message: String,
path: PathBuf,
source: Option<Error>,
},
Config {
message: String,
field: Option<String>,
},
Cache {
message: String,
source: Option<Box<dyn Error + Send + Sync>>,
},
Streaming {
message: String,
source: Option<Box<dyn Error + Send + Sync>>,
},
Parallel {
message: String,
source: Option<Box<dyn Error + Send + Sync>>,
},
Memory {
message: String,
details: Option<String>,
},
Signature {
message: String,
source: Option<Box<dyn Error + Send + Sync>>,
},
Profiling {
message: String,
source: Option<Box<dyn Error + Send + Sync>>,
},
Timeout {
message: String,
timeout_ms: u64,
},
ResourceLimit {
message: String,
limit: u64,
actual: u64,
},
Internal {
message: String,
location: Option<String>,
},
}
Expand description
Scaling-specific error types
Variants§
Io
I/O related errors
Path
Path-related errors
Config
Configuration errors
Cache
Caching errors
Streaming
Streaming errors
Parallel
Parallel processing errors
Memory
Memory management errors
Signature
Signature extraction errors
Profiling
Repository profiling errors
Timeout
Timeout errors
ResourceLimit
Resource limit exceeded
Internal
Internal errors
Implementations§
Source§impl ScalingError
impl ScalingError
Sourcepub fn path<S: Into<String>, P: Into<PathBuf>>(message: S, path: P) -> Self
pub fn path<S: Into<String>, P: Into<PathBuf>>(message: S, path: P) -> Self
Create a new path error
Sourcepub fn timeout<S: Into<String>>(message: S, timeout_ms: u64) -> Self
pub fn timeout<S: Into<String>>(message: S, timeout_ms: u64) -> Self
Create a new timeout error
Trait Implementations§
Source§impl Debug for ScalingError
impl Debug for ScalingError
Source§impl Display for ScalingError
impl Display for ScalingError
Source§impl Error for ScalingError
impl Error for ScalingError
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<Error> for ScalingError
impl From<Error> for ScalingError
Auto Trait Implementations§
impl Freeze for ScalingError
impl !RefUnwindSafe for ScalingError
impl Send for ScalingError
impl Sync for ScalingError
impl Unpin for ScalingError
impl !UnwindSafe for ScalingError
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