pub struct ApiState {
pub supervisor: Arc<Supervisor>,
pub prints: Arc<dyn PrintStore>,
pub events: Arc<dyn EventStore>,
pub images: Arc<dyn ImageStore>,
pub sessions: Arc<dyn SessionStore>,
pub operator: Arc<OperatorCredential>,
pub turns: TurnCredentials,
pub stored: Stored,
pub check_images: Option<Arc<PanelImages>>,
pub harness: Arc<HarnessCheck>,
}Expand description
What every handler is given: the supervisor, and the stores the reads answer out of — the four aggregates a route reads, and not the actions, which reach the store through the supervisor alone.
Fields§
§supervisor: Arc<Supervisor>The supervision core, which every action passes through.
prints: Arc<dyn PrintStore>The print records, their manifests and their narrowings.
events: Arc<dyn EventStore>The event log.
images: Arc<dyn ImageStore>The images stored beside the events.
sessions: Arc<dyn SessionStore>The supervision sessions.
operator: Arc<OperatorCredential>What the operator’s credential is checked against before anything above is reached.
turns: TurnCredentialsThe live supervision turns’ credentials, checked the same way.
stored: StoredThe broadcast an events read waits on, raised once an event is stored.
check_images: Option<Arc<PanelImages>>What makes every check’s image and judges every frame of a print, which a recheck of a print’s camera asks directly; none where nothing was installed.
harness: Arc<HarnessCheck>What a check of the supervising agent’s harness runs against.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ApiState
impl !UnwindSafe for ApiState
impl Forget for ApiState
impl Freeze for ApiStatewhere
*const ArcInner<Supervisor> is !null: Freeze,
PhantomData<ArcInner<Supervisor>>: Freeze,
*const ArcInner<dyn PrintStore> is !null: Freeze,
PhantomData<ArcInner<dyn PrintStore>>: Freeze,
*const ArcInner<dyn EventStore> is !null: Freeze,
PhantomData<ArcInner<dyn EventStore>>: Freeze,
*const ArcInner<dyn ImageStore> is !null: Freeze,
PhantomData<ArcInner<dyn ImageStore>>: Freeze,
*const ArcInner<dyn SessionStore> is !null: Freeze,
PhantomData<ArcInner<dyn SessionStore>>: Freeze,
*const ArcInner<OperatorCredential> is !null: Freeze,
PhantomData<ArcInner<OperatorCredential>>: Freeze,
*const ArcInner<Registry> is !null: Freeze,
PhantomData<ArcInner<Registry>>: Freeze,
*const ArcInner<Shared<u64>> is !null: Freeze,
PhantomData<ArcInner<Shared<u64>>>: Freeze,
*const ArcInner<PanelImages> is !null: Freeze,
PhantomData<ArcInner<PanelImages>>: Freeze,
*const ArcInner<HarnessCheck> is !null: Freeze,
PhantomData<ArcInner<HarnessCheck>>: Freeze,
impl Move for ApiState
impl Send for ApiStatewhere
Arc<Supervisor>: Send,
Arc<dyn PrintStore>: Send,
Arc<dyn EventStore>: Send,
Arc<dyn ImageStore>: Send,
Arc<dyn SessionStore>: Send,
Arc<OperatorCredential>: Send,
Arc<Registry>: Send,
Arc<Shared<u64>>: Send,
Arc<PanelImages>: Send,
Arc<HarnessCheck>: Send,
impl Sync for ApiStatewhere
Arc<Supervisor>: Sync,
Arc<dyn PrintStore>: Sync,
Arc<dyn EventStore>: Sync,
Arc<dyn ImageStore>: Sync,
Arc<dyn SessionStore>: Sync,
Arc<OperatorCredential>: Sync,
Arc<Registry>: Sync,
Arc<Shared<u64>>: Sync,
Arc<PanelImages>: Sync,
Arc<HarnessCheck>: Sync,
impl Unpin for ApiStatewhere
Arc<Supervisor>: Unpin,
Arc<dyn PrintStore>: Unpin,
Arc<dyn EventStore>: Unpin,
Arc<dyn ImageStore>: Unpin,
Arc<dyn SessionStore>: Unpin,
Arc<OperatorCredential>: Unpin,
Arc<Registry>: Unpin,
Arc<Shared<u64>>: Unpin,
Arc<PanelImages>: Unpin,
Arc<HarnessCheck>: Unpin,
impl UnsafeUnpin for ApiStatewhere
*const ArcInner<Supervisor> is !null: UnsafeUnpin,
PhantomData<ArcInner<Supervisor>>: UnsafeUnpin,
*const ArcInner<dyn PrintStore> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn PrintStore>>: UnsafeUnpin,
*const ArcInner<dyn EventStore> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn EventStore>>: UnsafeUnpin,
*const ArcInner<dyn ImageStore> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ImageStore>>: UnsafeUnpin,
*const ArcInner<dyn SessionStore> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn SessionStore>>: UnsafeUnpin,
*const ArcInner<OperatorCredential> is !null: UnsafeUnpin,
PhantomData<ArcInner<OperatorCredential>>: UnsafeUnpin,
*const ArcInner<Registry> is !null: UnsafeUnpin,
PhantomData<ArcInner<Registry>>: UnsafeUnpin,
*const ArcInner<Shared<u64>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Shared<u64>>>: UnsafeUnpin,
*const ArcInner<PanelImages> is !null: UnsafeUnpin,
PhantomData<ArcInner<PanelImages>>: UnsafeUnpin,
*const ArcInner<HarnessCheck> is !null: UnsafeUnpin,
PhantomData<ArcInner<HarnessCheck>>: UnsafeUnpin,
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
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.