pub enum StatusView {
Initialising {
api_base_url: String,
},
Pending {
api_base_url: String,
request_id: String,
since: DateTime<Utc>,
},
Rejected {
api_base_url: String,
reason: String,
},
Registered {
worker_id: String,
api_base_url: String,
vram_total_gb: f32,
vram_threshold_gb: f32,
paused: bool,
busy: bool,
last_heartbeat: Option<HeartbeatSummary>,
},
}Expand description
Pure-data view of the Status tab. Constructed each frame from
the live shared state; no egui types in scope so it’s
unit-testable. Maps onto auto_register::RegistrationState for
the pre-registration phases.
Variants§
Initialising
Worker is auto-registering but hasn’t received a request_id from the studio yet. Transient — normally only seen for a frame or two on first launch.
Pending
Studio has a Pending Workers row for this install; UI shows the request id + a copy button so the operator can match it in the dashboard.
Rejected
Operator rejected the request. Worker stops trying; the
hint instructs the user to run studio-worker register --reset
to clear state and try again.
Registered
Implementations§
Source§impl StatusView
impl StatusView
pub fn build( cfg: &Config, registration: &RegistrationState, busy: bool, paused: bool, last_heartbeat: Option<&HeartbeatStatus>, vram_total_gb: f32, ) -> Self
Trait Implementations§
Source§impl Clone for StatusView
impl Clone for StatusView
Source§fn clone(&self) -> StatusView
fn clone(&self) -> StatusView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StatusView
impl Debug for StatusView
Source§impl PartialEq for StatusView
impl PartialEq for StatusView
Source§fn eq(&self, other: &StatusView) -> bool
fn eq(&self, other: &StatusView) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StatusView
Auto Trait Implementations§
impl Freeze for StatusView
impl RefUnwindSafe for StatusView
impl Send for StatusView
impl Sync for StatusView
impl Unpin for StatusView
impl UnsafeUnpin for StatusView
impl UnwindSafe for StatusView
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.