pub struct CompiledCustomInput(pub Arc<dyn Any + Send + Sync>);Expand description
Pre-parsed typed input for a FunctionConfig::Custom task. Populated by
the engine at Engine::new() time by calling the registered
AsyncFunctionHandler::parse_input for the named function. Cached as
Arc<dyn Any> so the dispatch path can hand it to the handler with a
single downcast_ref (O(1)) and zero per-message deserialization cost.
The wrapper exists because dyn Any does not implement Debug, which
would otherwise prevent #[derive(Debug)] on FunctionConfig.
Tuple Fields§
§0: Arc<dyn Any + Send + Sync>Implementations§
Trait Implementations§
Source§impl Clone for CompiledCustomInput
impl Clone for CompiledCustomInput
Source§fn clone(&self) -> CompiledCustomInput
fn clone(&self) -> CompiledCustomInput
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 moreAuto Trait Implementations§
impl Freeze for CompiledCustomInput
impl !RefUnwindSafe for CompiledCustomInput
impl Send for CompiledCustomInput
impl Sync for CompiledCustomInput
impl Unpin for CompiledCustomInput
impl UnsafeUnpin for CompiledCustomInput
impl !UnwindSafe for CompiledCustomInput
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