pub struct RuntimeBuilder { /* private fields */ }Implementations§
Source§impl RuntimeBuilder
impl RuntimeBuilder
Sourcepub fn acquisition_source(
self,
source: Arc<dyn AcquisitionSource>,
max_concurrency: usize,
) -> Self
pub fn acquisition_source( self, source: Arc<dyn AcquisitionSource>, max_concurrency: usize, ) -> Self
Install a source by its spec 032 descriptor with a per-source attempt bound.
Sourcepub fn backend(
self,
backend: Arc<dyn DecisionBackend>,
max_concurrency: usize,
) -> Self
pub fn backend( self, backend: Arc<dyn DecisionBackend>, max_concurrency: usize, ) -> Self
Register a backend with its own attempt concurrency limit.
Sourcepub fn host_backend(
self,
backend: Arc<dyn DecisionBackend>,
max_concurrency: usize,
) -> Self
pub fn host_backend( self, backend: Arc<dyn DecisionBackend>, max_concurrency: usize, ) -> Self
Register a backend the host implements itself (spec 033, 3.9.1): its
failures are caused by the host, not an upstream service. A host
relaying a failure from its own upstream may still report it as
upstream; nothing reports the caller.
A ledger shared by every decision, reserved after each decision’s own.
Sourcepub fn build(self) -> Result<Runtime, ConfigError>
pub fn build(self) -> Result<Runtime, ConfigError>
Build the runtime. Under a queued sink policy this spawns the delivery worker, so it must run inside a Tokio runtime.
Auto Trait Implementations§
impl !RefUnwindSafe for RuntimeBuilder
impl !UnwindSafe for RuntimeBuilder
impl Freeze for RuntimeBuilder
impl Send for RuntimeBuilder
impl Sync for RuntimeBuilder
impl Unpin for RuntimeBuilder
impl UnsafeUnpin for RuntimeBuilder
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