pub struct EngineGlobals {
pub queue: Arc<Queue>,
pub surface: Arc<Surface<Window>>,
pub scene: Arc<RwLock<Scene>>,
pub event_loop_proxy: Arc<Mutex<EventLoopProxy<UserEvent<Arc<dyn Any + Send + Sync + 'static>>>>>,
pub id_system: IDSystem,
}
Fields§
§queue: Arc<Queue>
§surface: Arc<Surface<Window>>
§scene: Arc<RwLock<Scene>>
§event_loop_proxy: Arc<Mutex<EventLoopProxy<UserEvent<Arc<dyn Any + Send + Sync + 'static>>>>>
§id_system: IDSystem
Trait Implementations§
Source§impl Clone for EngineGlobals
impl Clone for EngineGlobals
Source§fn clone(&self) -> EngineGlobals
fn clone(&self) -> EngineGlobals
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EngineGlobals
impl Debug for EngineGlobals
Auto Trait Implementations§
impl Freeze for EngineGlobals
impl !RefUnwindSafe for EngineGlobals
impl Send for EngineGlobals
impl Sync for EngineGlobals
impl Unpin for EngineGlobals
impl !UnwindSafe for EngineGlobals
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Content for T
impl<T> Content for T
Source§fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
Source§fn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
Source§fn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.
Source§impl<T> GlobalClone for T
impl<T> GlobalClone for T
fn clone_global(&self) -> Box<dyn Global>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more