pub enum HfPortError {
ModelNotFound {
model_id: String,
},
QuantizationNotFound {
model_id: String,
quantization: String,
},
RateLimited,
AuthRequired {
model_id: String,
},
Network {
message: String,
},
InvalidResponse {
message: String,
},
Configuration {
message: String,
},
}Expand description
Errors from HuggingFace port operations.
These are domain-level errors that consumers can handle. Implementation-specific errors (HTTP, JSON) are mapped to these.
Variants§
ModelNotFound
The requested model was not found.
QuantizationNotFound
The requested quantization wasn’t found for the model.
RateLimited
API rate limit exceeded.
AuthRequired
Authentication required or failed.
Network
Network or connectivity error.
InvalidResponse
Invalid response from the API.
Configuration
Configuration error.
Trait Implementations§
Source§impl Debug for HfPortError
impl Debug for HfPortError
Source§impl Display for HfPortError
impl Display for HfPortError
Source§impl Error for HfPortError
impl Error for HfPortError
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()
Auto Trait Implementations§
impl Freeze for HfPortError
impl RefUnwindSafe for HfPortError
impl Send for HfPortError
impl Sync for HfPortError
impl Unpin for HfPortError
impl UnwindSafe for HfPortError
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