pub struct Ports {
pub printer: Arc<dyn PrinterPort>,
pub stores: Stores,
pub vision: Arc<ObicoVision>,
pub agent: Arc<dyn SupervisorPort>,
}Expand description
The four implementations one running server was composed from.
A tier that stands in for a machine hands these in; Server::start builds
them from the configuration.
Fields§
§printer: Arc<dyn PrinterPort>The printer.
stores: StoresDurable state, one handle per aggregate onto one store.
vision: Arc<ObicoVision>External observations, and the snapshot fetch.
agent: Arc<dyn SupervisorPort>The supervising agent’s harness.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Ports
impl !UnwindSafe for Ports
impl Forget for Ports
impl Freeze for Portswhere
*const ArcInner<dyn PrinterPort> is !null: Freeze,
PhantomData<ArcInner<dyn PrinterPort>>: 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,
*const ArcInner<ObicoVision> is !null: Freeze,
PhantomData<ArcInner<ObicoVision>>: Freeze,
*const ArcInner<dyn SupervisorPort> is !null: Freeze,
PhantomData<ArcInner<dyn SupervisorPort>>: Freeze,
impl Move for Ports
impl Send for Portswhere
Arc<dyn PrinterPort>: 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<ObicoVision>: Send,
Arc<dyn SupervisorPort>: Send,
impl Sync for Portswhere
Arc<dyn PrinterPort>: 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<ObicoVision>: Sync,
Arc<dyn SupervisorPort>: Sync,
impl Unpin for Portswhere
Arc<dyn PrinterPort>: 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<ObicoVision>: Unpin,
Arc<dyn SupervisorPort>: Unpin,
impl UnsafeUnpin for Portswhere
*const ArcInner<dyn PrinterPort> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn PrinterPort>>: 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,
*const ArcInner<ObicoVision> is !null: UnsafeUnpin,
PhantomData<ArcInner<ObicoVision>>: UnsafeUnpin,
*const ArcInner<dyn SupervisorPort> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn SupervisorPort>>: 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
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
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> ⓘ
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 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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.