pub enum SystemHandler<O: Observer + 'static = PhantomObserver, M: Mediator + 'static = PhantomMediator> {
Observer(O),
Mediator(M),
}
Expand description
The SystemHandler is a middleware to convert an Observer or Mediator into a System.
Variants§
Trait Implementations§
Source§impl<O, M> System for SystemHandler<O, M>
impl<O, M> System for SystemHandler<O, M>
Source§fn register_to(self, registry: HandlerRegistry<'_>)
fn register_to(self, registry: HandlerRegistry<'_>)
Register one or some handler functions to the ECS World.
Auto Trait Implementations§
impl<O, M> Freeze for SystemHandler<O, M>
impl<O, M> RefUnwindSafe for SystemHandler<O, M>where
O: RefUnwindSafe,
M: RefUnwindSafe,
impl<O, M> Send for SystemHandler<O, M>
impl<O, M> Sync for SystemHandler<O, M>
impl<O, M> Unpin for SystemHandler<O, M>
impl<O, M> UnwindSafe for SystemHandler<O, M>where
O: UnwindSafe,
M: UnwindSafe,
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