submit

Function submit 

pub fn submit<T>(op: T) -> Submit<T> 
where T: OpCode + 'static,
Available on crate feature runtime only.
Expand description

Submit an operation to the current runtime, and return a future for it.

§Panics

This method doesn’t create runtime and will panic if it’s not within a runtime. It tries to obtain the current runtime by Runtime::with_current.