pub type OpenSession = fn(ScriptCtx) -> Result<Session, SessionError>;
Session::new or Session::guarded.
Session::new
Session::guarded