pub trait FarCall<Args>{
type Output: BankSafe;
// Required method
fn invoke<C>(&self, outer: &mut Bank<C>, args: Args) -> Self::Output
where C: Group;
}Available on crate feature
bank only.Expand description
A far pointer that can be called across a bank boundary.
Implemented by Far and DynFar over function pointers, this is the
unified call interface: invoke switches into the target
bank, invokes the function with args, and restores the caller’s bank C.
The #[bank] macro rewrites recv.invoke(args) onto it.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".