Download crates/forge_infra/src/auth/error.rs from SaylorTwift/forgecode: direct link, hf CLI and curl.
- Browser
- Download file 1.08 kB
-
https://huggingface.co/SaylorTwift/forgecode/resolve/main/crates/forge_infra/src/auth/error.rs
- Command line
-
hf download hf://SaylorTwift/forgecode/crates/forge_infra/src/auth/error.rs
-
curl -L -o error.rs https://huggingface.co/SaylorTwift/forgecode/resolve/main/crates/forge_infra/src/auth/error.rs
1.08 kB
| use std::time::Duration; | |
| /// Authentication flow errors. | |
| pub enum Error { | |
| /// Authentication initiation failed. | |
| InitiationFailed(String), | |
| /// Authentication timed out waiting for user. | |
| Timeout(Duration), | |
| /// Device code or session expired before completion. | |
| Expired, | |
| /// User denied authorization request. | |
| Denied, | |
| /// Polling operation failed due to network or server error. | |
| PollFailed(String), | |
| /// Authentication completion failed. | |
| CompletionFailed(String), | |
| /// Token refresh operation failed. | |
| RefreshFailed(String), | |
| /// Invalid authentication context for the flow type. | |
| InvalidContext(String), | |
| } | |