pub struct CallbackRuntime { /* private fields */ }Expand description
Owns the callback queue worker and its graceful-shutdown signal.
Implementations§
Source§impl CallbackRuntime
impl CallbackRuntime
Sourcepub fn new(
manager: Arc<IntegrationManager>,
queue_capacity: usize,
) -> IntegrationResult<Self>
pub fn new( manager: Arc<IntegrationManager>, queue_capacity: usize, ) -> IntegrationResult<Self>
Start a callback worker around an existing integration manager.
Sourcepub fn dispatcher(&self) -> CallbackDispatcher
pub fn dispatcher(&self) -> CallbackDispatcher
Obtain the request-path dispatcher.
Sourcepub async fn shutdown(self) -> IntegrationResult<()>
pub async fn shutdown(self) -> IntegrationResult<()>
Drain pending events, flush integrations, and stop the worker.
Trait Implementations§
Source§impl Drop for CallbackRuntime
impl Drop for CallbackRuntime
Auto Trait Implementations§
impl !RefUnwindSafe for CallbackRuntime
impl !UnwindSafe for CallbackRuntime
impl Freeze for CallbackRuntime
impl Send for CallbackRuntime
impl Sync for CallbackRuntime
impl Unpin for CallbackRuntime
impl UnsafeUnpin for CallbackRuntime
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> BudgetAwareRouting for T
impl<T> BudgetAwareRouting for T
Source§fn filter_by_budget(
&self,
providers: Vec<String>,
budget_router: &BudgetAwareRouter,
) -> Vec<String>
fn filter_by_budget( &self, providers: Vec<String>, budget_router: &BudgetAwareRouter, ) -> Vec<String>
Filter providers based on budget availability
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 moreCreates a shared type from an unshared type.