pub enum BackendMessage {
Show 18 variants
OrgsDiscovered(usize),
OrgStarted(String),
OrgComplete(String, usize),
DiscoveryComplete(Vec<OwnedRepo>),
DiscoveryError(String),
SetupOrgsDiscovered(Vec<OrgEntry>),
SetupOrgsError(String),
OperationStarted {
operation: Operation,
total: usize,
to_clone: usize,
to_sync: usize,
},
RepoStarted {
repo_name: String,
},
RepoProgress {
repo_name: String,
success: bool,
skipped: bool,
message: String,
had_updates: bool,
is_clone: bool,
new_commits: Option<u32>,
skip_reason: Option<String>,
},
RepoCommitLog {
repo_name: String,
commits: Vec<String>,
},
OperationComplete(OpSummary),
OperationError(String),
StatusResults(Vec<RepoEntry>),
SetupCheckResults(Vec<CheckEntry>),
DefaultWorkspaceUpdated(Option<String>),
DefaultWorkspaceError(String),
CheckResults(Vec<CheckEntry>),
}Expand description
Messages from backend async operations.
Variants§
OrgsDiscovered(usize)
Discovery: orgs found.
OrgStarted(String)
Discovery: processing an org.
OrgComplete(String, usize)
Discovery: org complete with N repos.
DiscoveryComplete(Vec<OwnedRepo>)
Discovery complete with full repo list.
DiscoveryError(String)
Discovery failed.
SetupOrgsDiscovered(Vec<OrgEntry>)
Setup wizard org discovery complete.
SetupOrgsError(String)
Setup wizard org discovery failed.
OperationStarted
Operation phase started with total and per-phase breakdown.
RepoStarted
A repo started processing (for live worker slots).
RepoProgress
Operation progress: one repo processed.
Fields
RepoCommitLog
Commit log for a specific repo (post-sync deep dive).
OperationComplete(OpSummary)
Operation complete.
OperationError(String)
Operation error.
StatusResults(Vec<RepoEntry>)
Status scan results.
SetupCheckResults(Vec<CheckEntry>)
Setup wizard requirement check results.
DefaultWorkspaceUpdated(Option<String>)
Default workspace was set/cleared successfully.
DefaultWorkspaceError(String)
Default workspace operation failed.
CheckResults(Vec<CheckEntry>)
Requirement check results (background).
Trait Implementations§
Source§impl Clone for BackendMessage
impl Clone for BackendMessage
Source§fn clone(&self) -> BackendMessage
fn clone(&self) -> BackendMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BackendMessage
impl RefUnwindSafe for BackendMessage
impl Send for BackendMessage
impl Sync for BackendMessage
impl Unpin for BackendMessage
impl UnsafeUnpin for BackendMessage
impl UnwindSafe for BackendMessage
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
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>
Converts
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>
Converts
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