pub struct AppState {
pub crates: Vec<CrateInfo>,
pub build_statuses: Arc<Mutex<HashMap<String, BuildOutcome>>>,
pub pending_builds_debouncer: HashMap<String, (CrateInfo, Instant)>,
pub active_builds: Arc<Mutex<HashSet<String>>>,
pub should_quit: bool,
}Fields§
§crates: Vec<CrateInfo>The crates that have been discovered.
build_statuses: Arc<Mutex<HashMap<String, BuildOutcome>>>The build statuses of the crates.
pending_builds_debouncer: HashMap<String, (CrateInfo, Instant)>A debouncer for pending builds.
active_builds: Arc<Mutex<HashSet<String>>>The crates that are currently being built.
should_quit: boolWhether the application should quit.
Implementations§
Auto Trait Implementations§
impl Freeze for AppState
impl RefUnwindSafe for AppState
impl Send for AppState
impl Sync for AppState
impl Unpin for AppState
impl UnwindSafe for AppState
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> 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