pub struct Services<R, S> { /* private fields */ }Expand description
The portable services one invocation calls.
The CLI owns no correctness rule of its own; every guard belongs to these services.
Implementations§
Source§impl<R: JobRepository, S: ExplorerRepository> Services<R, S>
impl<R: JobRepository, S: ExplorerRepository> Services<R, S>
Sourcepub fn new(
operator: JobOperator<R>,
retention: RetentionService<R>,
explorer: JobExplorer<S>,
schema: Box<dyn SchemaReport>,
) -> Self
pub fn new( operator: JobOperator<R>, retention: RetentionService<R>, explorer: JobExplorer<S>, schema: Box<dyn SchemaReport>, ) -> Self
Binds already-constructed services.
Sourcepub fn with_recovery_proposals(
self,
recovery: Box<dyn RecoveryProposalPort>,
) -> Self
pub fn with_recovery_proposals( self, recovery: Box<dyn RecoveryProposalPort>, ) -> Self
Attaches the evidence source required by execution recover.
Auto Trait Implementations§
impl<R, S> !RefUnwindSafe for Services<R, S>
impl<R, S> !UnwindSafe for Services<R, S>
impl<R, S> Freeze for Services<R, S>
impl<R, S> Send for Services<R, S>
impl<R, S> Sync for Services<R, S>
impl<R, S> Unpin for Services<R, S>
impl<R, S> UnsafeUnpin for Services<R, S>where
R: UnsafeUnpin,
S: 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
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 more