pub trait FnContext<R>:
Fn(&mut Context) -> R
+ Send
+ Sync { }Expand description
A generic trait for functions that take a Context and return a value.
This trait encapsulates the common behavior of being a sendable, synchronous
function that accepts a Context. It is used as a base for other, more
specific function traits.