Skip to main content

current

Function current 

Source
pub fn current() -> Option<&'static Instance>
Available on crate feature instance only.
Expand description

The instance created by Instance::start, or None before the first call.

sys_lib::Instance::start();
assert!(sys_lib::instance::current().is_some());