#[non_exhaustive]pub enum Notice {
Show 16 variants
NoRemotes,
UnsupportedHost {
best_remote: RemoteInfo,
},
MixedRemotes {
hosts: Vec<RemoteHost>,
count: usize,
},
UnreachableGitHub {
remote: RemoteInfo,
},
ApiOnly,
CacheUpdateFailed {
error: String,
},
ShallowRepoDetected,
CloningRepo {
url: String,
},
CloneSucceeded {
used_filter: bool,
},
CloneFallbackToBare {
error: String,
},
UpdatingCache,
CacheUpdated,
CrossProjectFallbackToApi {
owner: String,
repo: String,
error: String,
},
GhRateLimitHit {
authenticated: bool,
},
GhAnonymousFallbackFailed {
error: String,
},
CrossProjectPrFetchFailed {
owner: String,
repo: String,
pr_number: u64,
error: String,
},
}Expand description
Notices emitted during backend/git operations. All notices are delivered via callback - the CLI layer decides how to display them.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NoRemotes
No remotes configured at all
UnsupportedHost
Single host type detected but it’s not GitHub
Fields
best_remote: RemoteInfoThe best remote we found (by priority: upstream > origin > other)
MixedRemotes
Multiple different hosts detected, none of them GitHub
UnreachableGitHub
GitHub remote found but API client couldn’t be created
Fields
remote: RemoteInfoThe GitHub remote we found
ApiOnly
Local git repo couldn’t be opened, using pure API
CacheUpdateFailed
Failed to update a cached repository
ShallowRepoDetected
Repository is shallow, falling back to API
CloningRepo
Starting to clone a remote repository
CloneSucceeded
Clone succeeded
CloneFallbackToBare
Filter clone failed, falling back to bare clone
UpdatingCache
Starting to update a cached repository
CacheUpdated
Cache update completed
CrossProjectFallbackToApi
Cross-project reference falling back to API-only
GhRateLimitHit
GitHub API rate limit was hit
GhAnonymousFallbackFailed
Anonymous fallback was attempted but failed with a non-rate-limit error
CrossProjectPrFetchFailed
Cross-project PR commit fetch failed (e.g., due to rate limits or auth issues)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Notice
impl RefUnwindSafe for Notice
impl Send for Notice
impl Sync for Notice
impl Unpin for Notice
impl UnsafeUnpin for Notice
impl UnwindSafe for Notice
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more