pub(super) struct EmbedRouteContext<'a> {
pub worker_id: usize,
pub route: &'static str,
pub consecutive_failures: u64,
pub circuit_breaker_threshold: usize,
pub jit_suspect_tx: Option<&'a Sender<(usize, usize)>>,
pub engine_propagation_tx: Option<&'a Sender<(usize, usize)>>,
pub batch_len: usize,
}Expand description
Per-route context passed to finalize_embed_route after inference.
Fields§
§worker_id: usize§route: &'static str§consecutive_failures: u64§circuit_breaker_threshold: usize§jit_suspect_tx: Option<&'a Sender<(usize, usize)>>§engine_propagation_tx: Option<&'a Sender<(usize, usize)>>§batch_len: usizeAuto Trait Implementations§
impl<'a> Freeze for EmbedRouteContext<'a>
impl<'a> RefUnwindSafe for EmbedRouteContext<'a>
impl<'a> Send for EmbedRouteContext<'a>
impl<'a> Sync for EmbedRouteContext<'a>
impl<'a> Unpin for EmbedRouteContext<'a>
impl<'a> UnsafeUnpin for EmbedRouteContext<'a>
impl<'a> UnwindSafe for EmbedRouteContext<'a>
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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