-
Context::render_control()
now takesnsi::Action
as fist parameter. This change was made to reflect the fact that the action cannot be omitted. The 2nd parameter is the familiarOption<&ArgSlice>
.I.e. this:
ctx.render_control(&[nsi::string!("action", "start")]);
changes to:
ctx.render_control(nsi::Action::Start, None);
-
All
Arg
types now implementClone
. -
Pointer
&Pointers
have been deprecated. You should be able to do everything viaReference
&Refererences
. -
The following types are now
Send
&Sync
:-
Callbacks with static lifetimes (
Callback<'static>
). -
References with static lifetimes (
Reference<'static>
). -
Strings
-
-
Context
is nowSend
,Sync
,Copy
&Clone
. -
All
Context
methods that have optional arguments now takeOption<&ArgSlice>
(instead of&ArgSlice
).I.e. this:
let ctx = nsi::Context::new(&[]).unwrap();
changes to:
let ctx = nsi::Context::new(None).unwrap();