Struct wings::WingsContextHandle
source · pub struct WingsContextHandle<S: WingsSystem> { /* private fields */ }Expand description
Represents a system-specific handle to a Wings context.
Implementations§
source§impl<S: WingsSystem> WingsContextHandle<S>
impl<S: WingsSystem> WingsContextHandle<S>
sourcepub fn raise_event<T: ExportEvent>(&self, event: T)
pub fn raise_event<T: ExportEvent>(&self, event: T)
Raises the specified event.
sourcepub fn get<T: SystemTrait + ?Sized>(&self) -> SystemRef<'_, T>
pub fn get<T: SystemTrait + ?Sized>(&self) -> SystemRef<'_, T>
Obtains the specified system dependency.
sourcepub fn get_mut<T: SystemTrait + ?Sized>(&mut self) -> SystemRefMut<'_, T>
pub fn get_mut<T: SystemTrait + ?Sized>(&mut self) -> SystemRefMut<'_, T>
Mutably obtains the specified system dependency.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for WingsContextHandle<S>
impl<S> !RefUnwindSafe for WingsContextHandle<S>
impl<S> !Send for WingsContextHandle<S>
impl<S> !Sync for WingsContextHandle<S>
impl<S> Unpin for WingsContextHandle<S>
impl<S> !UnwindSafe for WingsContextHandle<S>
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