pub struct FunctionOptions {
pub zero_traced: bool,
pub private: bool,
pub interceptor: bool,
}Expand description
interceptor is @EventInterceptor (the function receives the raw
envelope — reply_to/cid intact — and replies manually; the worker sends
no auto-reply on success, though a failure still routes to reply_to).
Fields§
§zero_traced: bool§private: boolJava isPrivate: a private function is reachable only inside this
application instance — Event over HTTP rejects it with 403. register
creates PUBLIC functions (Java parity); use register_private or the
#[preload] macro (private by default, like Java @PreLoad).
interceptor: boolTrait Implementations§
Source§impl Clone for FunctionOptions
impl Clone for FunctionOptions
Source§fn clone(&self) -> FunctionOptions
fn clone(&self) -> FunctionOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FunctionOptions
Source§impl Debug for FunctionOptions
impl Debug for FunctionOptions
Source§impl Default for FunctionOptions
impl Default for FunctionOptions
Source§fn default() -> FunctionOptions
fn default() -> FunctionOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FunctionOptions
impl RefUnwindSafe for FunctionOptions
impl Send for FunctionOptions
impl Sync for FunctionOptions
impl Unpin for FunctionOptions
impl UnsafeUnpin for FunctionOptions
impl UnwindSafe for FunctionOptions
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