/// Create a new global object
///
/// This object will be advertised to all clients, and they will
/// be able to instantiate it from their registries.
///
/// Your implementation will be called whenever a client instantiates
/// this global.
///
/// The version specified is the **highest supported version**, you must
/// be able to handle clients that choose to instantiate this global with
/// a lower version number.
Create a new global object
This object will be advertised to all clients, and they will
be able to instantiate it from their registries.

Your implementation will be called whenever a client instantiates
this global.

The version specified is the **highest supported version**, you must
be able to handle clients that choose to instantiate this global with
a lower version number.
Create a new global object This object will be advertised to all clients and they will be able to instantiate it from their registries . Your implementation will be called whenever a client instantiates this global . The version specified is the ** highest supported version ** you must be able to handle clients that choose to instantiate this global with a lower version number .
pub fn create_global<I: Interface, F>(&mut self, version: u32, implementation: F) -> Global<I>
    where
        F: FnMut(NewResource<I>, u32) + 'static,
    {
        assert!(
            version <= I::VERSION,
            "Cannot create global {} with version {}, maximum protocol version is {}.",
            I::NAME,
            version,
            I::VERSION
        );
        Global::create(
            self.inner
                .borrow_mut()
                .create_global(version, implementation, None::<fn(_) -> bool>),
        )
    }
pub fn create_global < I : Interface , F > ( & mut self , version : u32 , implementation : F ) -> Global < I > where F : FnMut ( NewResource < I > , u32 ) + ' static , { assert ! ( version I VERSION " " I NAME version I VERSION ) ; Global :: create ( self . inner . borrow_mut ( ) . create_global ( version , implementation , None :: < fn ( _ ) -> bool > ) , ) }
Create a new global object
This object will be advertised to all clients, and they will
be able to instantiate it from their registries.
Create a new global object This object will be advertised to all clients and they will be able to instantiate it from their registries .
&mut self
version
u32
implementation
F