pub enum RemoteError {
CloneFailed {
url: String,
message: String,
},
InvalidUrl(String),
NotFound(String),
AuthRequired(String),
RateLimitExceeded {
reset_at: String,
},
Network(Error),
Http {
status: u16,
message: String,
},
ParseError(String),
TempDir(String),
GitNotFound,
CloneTimeout {
url: String,
timeout_secs: u64,
},
RepositoryTooLarge {
url: String,
size_mb: u64,
limit_mb: u64,
},
}Expand description
Errors related to remote repository scanning
Variants§
CloneFailed
Git clone operation failed
InvalidUrl(String)
Invalid repository URL format
NotFound(String)
Repository not found (404)
AuthRequired(String)
Authentication required for private repository
RateLimitExceeded
GitHub API rate limit exceeded
Network(Error)
Network/IO error
Http
HTTP request error
ParseError(String)
Failed to parse awesome-claude-code README
TempDir(String)
Temporary directory creation failed
GitNotFound
Git command not found
CloneTimeout
Clone timeout exceeded
RepositoryTooLarge
Repository too large
Implementations§
Source§impl RemoteError
impl RemoteError
Sourcepub fn is_retryable(&self) -> bool
pub fn is_retryable(&self) -> bool
Check if error is retryable
Sourcepub fn is_auth_error(&self) -> bool
pub fn is_auth_error(&self) -> bool
Check if error is due to authentication issues
Trait Implementations§
Source§impl Debug for RemoteError
impl Debug for RemoteError
Source§impl Display for RemoteError
impl Display for RemoteError
Source§impl Error for RemoteError
impl Error for RemoteError
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 RemoteError
impl !RefUnwindSafe for RemoteError
impl Send for RemoteError
impl Sync for RemoteError
impl Unpin for RemoteError
impl !UnwindSafe for RemoteError
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