pub struct PreloadEntry {
pub route: &'static str,
pub instances: usize,
pub env_instances: Option<&'static str>,
pub optional_service: Option<&'static str>,
pub is_private: bool,
pub zero_tracing: bool,
pub interceptor: bool,
pub factory: fn() -> Arc<dyn ComposableFunction>,
}Expand description
A #[preload]-annotated composable function (Java @PreLoad).
Fields§
§route: &'static str§instances: usize§env_instances: Option<&'static str>Optional configuration key for the instance count (Java envInstances);
instances is the fallback.
optional_service: Option<&'static str>Java @OptionalService: a configuration condition (e.g. "app.env=dev")
that must hold at startup for this route to register; None = always
register. Evaluated by crate::util::feature::is_required.
is_private: boolJava @PreLoad.isPrivate (default true): a private function is
reachable only inside this application instance — Event over HTTP
rejects it with 403.
zero_tracing: boolJava @ZeroTracing: this route’s executions are excluded from
distributed-trace recording.
interceptor: boolJava @EventInterceptor: manual replies, no auto-reply on success.
factory: fn() -> Arc<dyn ComposableFunction>Trait Implementations§
impl Collect for PreloadEntry
Auto Trait Implementations§
impl Freeze for PreloadEntry
impl RefUnwindSafe for PreloadEntry
impl Send for PreloadEntry
impl Sync for PreloadEntry
impl Unpin for PreloadEntry
impl UnsafeUnpin for PreloadEntry
impl UnwindSafe for PreloadEntry
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