Skip to main content

BackendMessage

Enum BackendMessage 

Source
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.

Fields

§operation: Operation
§total: usize
§to_clone: usize
§to_sync: usize
§

RepoStarted

A repo started processing (for live worker slots).

Fields

§repo_name: String
§

RepoProgress

Operation progress: one repo processed.

Fields

§repo_name: String
§success: bool
§skipped: bool
§message: String
§had_updates: bool

Whether this repo had new commits.

§is_clone: bool

Whether this was a clone (not a sync).

§new_commits: Option<u32>

Number of new commits fetched (if known).

§skip_reason: Option<String>

Structured skip reason (if skipped).

§

RepoCommitLog

Commit log for a specific repo (post-sync deep dive).

Fields

§repo_name: String
§commits: Vec<String>
§

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

Source§

fn clone(&self) -> BackendMessage

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for BackendMessage

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more