pub struct Running { /* private fields */ }Expand description
One server, serving.
Dropping this stops it, and so does Running::stop; nothing here outlives
the handle a caller holds.
Implementations§
Source§impl Running
impl Running
Sourcepub fn print_alignment(&self, print_id: PrintId) -> PrintAlignment
pub fn print_alignment(&self, print_id: PrintId) -> PrintAlignment
One print’s first-layer alignment verdict, which a check reads before drawing the planned toolpath on its image.
Sourcepub const fn address(&self) -> SocketAddr
pub const fn address(&self) -> SocketAddr
Where this server is answering.
Sourcepub fn ingress_url(&self) -> String
pub fn ingress_url(&self) -> String
The URL its ingress endpoint answers on.
Sourcepub const fn config(&self) -> &ServerConfig
pub const fn config(&self) -> &ServerConfig
What it was configured with.
Sourcepub fn warnings(&self) -> &[String]
pub fn warnings(&self) -> &[String]
What this start found that its operator should change — a plaintext
api.credential among them — in words that quote no credential. The
program running the server writes each to its log on every start.
Sourcepub const fn reconciliation(&self) -> &Reconciliation
pub const fn reconciliation(&self) -> &Reconciliation
What this start adopted from the store.
Sourcepub const fn supervisor(&self) -> &Arc<Supervisor> ⓘ
pub const fn supervisor(&self) -> &Arc<Supervisor> ⓘ
The supervision core it is serving over.
Sourcepub fn completions(&self) -> Receiver<u64>
pub fn completions(&self) -> Receiver<u64>
How many posts the ingress worker has finished handling, watchable while it works.
Sourcepub async fn serve_until_signalled(self) -> Result<(), StartError>
pub async fn serve_until_signalled(self) -> Result<(), StartError>
Serve until the operating system asks this process to stop.
This is what the server subcommand runs. It answers however this
platform asks a process to stop — see [stop_requested] — and every one
of those ways enters the same shutdown: Running::stop.
§Errors
Returns StartError::State when the stop handlers cannot be
installed, which is a process that could not be stopped cleanly.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Running
impl !UnwindSafe for Running
impl Forget for Running
impl Freeze for Runningwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<Adjustable, Range> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(Adjustable, Range)>>: Freeze,
*const LeafNode<ActorClass, Vec<ActionKind>> is !null: Freeze,
PhantomData<Box<(ActorClass, Vec<ActionKind>)>>: Freeze,
NonZero<u64>: Freeze,
*const ArcInner<CameraCalibration> is !null: Freeze,
PhantomData<ArcInner<CameraCalibration>>: Freeze,
*const LeafNode<MaterialName, Vec<SheetId>> is !null: Freeze,
PhantomData<Box<(MaterialName, Vec<SheetId>)>>: Freeze,
PhantomData<RecoveryActionKind>: Freeze,
PhantomData<ActorClass>: Freeze,
PhantomData<String>: Freeze,
*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 ActionStore> is !null: Freeze,
PhantomData<ArcInner<dyn ActionStore>>: Freeze,
*const ArcInner<dyn SessionStore> is !null: Freeze,
PhantomData<ArcInner<dyn SessionStore>>: Freeze,
*const ArcInner<dyn FilamentStore> is !null: Freeze,
PhantomData<ArcInner<dyn FilamentStore>>: Freeze,
*const ArcInner<dyn TimelineStore> is !null: Freeze,
PhantomData<ArcInner<dyn TimelineStore>>: Freeze,
PhantomData<PrintId>: Freeze,
PhantomData<InterventionId>: Freeze,
PhantomData<EventId>: Freeze,
*const ArcInner<Shared<u64>> is !null: Freeze,
PhantomData<ArcInner<Shared<u64>>>: Freeze,
*const ArcInner<Inner<()>> is !null: Freeze,
PhantomData<ArcInner<Inner<()>>>: Freeze,
*const Header is !null: Freeze,
PhantomData<()>: Freeze,
PhantomData<JoinHandle<()>>: Freeze,
*const ArcInner<Alignments> is !null: Freeze,
PhantomData<ArcInner<Alignments>>: Freeze,
impl Move for Running
impl Send for Runningwhere
RawVecInner: Send,
NodeRef<Owned, Adjustable, Range, LeafOrInternal>: Send,
BoxRaw<(Adjustable, Range)>: Send,
NodeRef<Owned, ActorClass, Vec<ActionKind>, LeafOrInternal>: Send,
BoxRaw<(ActorClass, Vec<ActionKind>)>: Send,
NonZero<u64>: Send,
Arc<CameraCalibration>: Send,
NodeRef<Owned, MaterialName, Vec<SheetId>, LeafOrInternal>: Send,
BoxRaw<(MaterialName, Vec<SheetId>)>: Send,
Arc<Supervisor>: Send,
Arc<dyn PrintStore>: Send,
Arc<dyn EventStore>: Send,
Arc<dyn ImageStore>: Send,
Arc<dyn ActionStore>: Send,
Arc<dyn SessionStore>: Send,
Arc<dyn FilamentStore>: Send,
Arc<dyn TimelineStore>: Send,
Arc<Shared<u64>>: Send,
Arc<Inner<()>>: Send,
JoinHandle<()>: Send,
Arc<Alignments>: Send,
impl Sync for Runningwhere
RawVecInner: Sync,
NodeRef<Owned, Adjustable, Range, LeafOrInternal>: Sync,
BoxRaw<(Adjustable, Range)>: Sync,
NodeRef<Owned, ActorClass, Vec<ActionKind>, LeafOrInternal>: Sync,
BoxRaw<(ActorClass, Vec<ActionKind>)>: Sync,
NonZero<u64>: Sync,
Arc<CameraCalibration>: Sync,
NodeRef<Owned, MaterialName, Vec<SheetId>, LeafOrInternal>: Sync,
BoxRaw<(MaterialName, Vec<SheetId>)>: Sync,
Arc<Supervisor>: Sync,
Arc<dyn PrintStore>: Sync,
Arc<dyn EventStore>: Sync,
Arc<dyn ImageStore>: Sync,
Arc<dyn ActionStore>: Sync,
Arc<dyn SessionStore>: Sync,
Arc<dyn FilamentStore>: Sync,
Arc<dyn TimelineStore>: Sync,
Arc<Shared<u64>>: Sync,
Arc<Inner<()>>: Sync,
JoinHandle<()>: Sync,
Arc<Alignments>: Sync,
impl Unpin for Runningwhere
*const u8 is !null: Unpin,
*const LeafNode<Adjustable, Range> is !null: Unpin,
Box<(Adjustable, Range)>: Unpin,
*const LeafNode<ActorClass, Vec<ActionKind>> is !null: Unpin,
Box<(ActorClass, Vec<ActionKind>)>: Unpin,
NonZero<u64>: Unpin,
Arc<CameraCalibration>: Unpin,
*const LeafNode<MaterialName, Vec<SheetId>> is !null: Unpin,
Box<(MaterialName, Vec<SheetId>)>: Unpin,
Arc<Supervisor>: Unpin,
Arc<dyn PrintStore>: Unpin,
Arc<dyn EventStore>: Unpin,
Arc<dyn ImageStore>: Unpin,
Arc<dyn ActionStore>: Unpin,
Arc<dyn SessionStore>: Unpin,
Arc<dyn FilamentStore>: Unpin,
Arc<dyn TimelineStore>: Unpin,
Arc<Shared<u64>>: Unpin,
Arc<Inner<()>>: Unpin,
JoinHandle<()>: Unpin,
Arc<Alignments>: Unpin,
impl UnsafeUnpin for Runningwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<Adjustable, Range> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(Adjustable, Range)>>: UnsafeUnpin,
*const LeafNode<ActorClass, Vec<ActionKind>> is !null: UnsafeUnpin,
PhantomData<Box<(ActorClass, Vec<ActionKind>)>>: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
*const ArcInner<CameraCalibration> is !null: UnsafeUnpin,
PhantomData<ArcInner<CameraCalibration>>: UnsafeUnpin,
*const LeafNode<MaterialName, Vec<SheetId>> is !null: UnsafeUnpin,
PhantomData<Box<(MaterialName, Vec<SheetId>)>>: UnsafeUnpin,
PhantomData<RecoveryActionKind>: UnsafeUnpin,
PhantomData<ActorClass>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*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 ActionStore> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ActionStore>>: UnsafeUnpin,
*const ArcInner<dyn SessionStore> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn SessionStore>>: UnsafeUnpin,
*const ArcInner<dyn FilamentStore> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn FilamentStore>>: UnsafeUnpin,
*const ArcInner<dyn TimelineStore> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn TimelineStore>>: UnsafeUnpin,
PhantomData<PrintId>: UnsafeUnpin,
PhantomData<InterventionId>: UnsafeUnpin,
PhantomData<EventId>: UnsafeUnpin,
*const ArcInner<Shared<u64>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Shared<u64>>>: UnsafeUnpin,
*const ArcInner<Inner<()>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Inner<()>>>: UnsafeUnpin,
*const Header is !null: UnsafeUnpin,
PhantomData<()>: UnsafeUnpin,
PhantomData<JoinHandle<()>>: UnsafeUnpin,
*const ArcInner<Alignments> is !null: UnsafeUnpin,
PhantomData<ArcInner<Alignments>>: 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
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.