Function run_transaction
pub fn run_transaction<H, T, E>(
host: &mut H,
f: impl FnOnce(&mut H, &Transaction) -> Result<T, E>,
) -> Result<T, E>where
H: ServerHost + ?Sized,Expand description
host.transaction for a host of a known type, which f gets back: the game’s own moves (a
hopper’s) run in one through this.