pub struct PhantomObserver;
Expand description
The placeholder observer for SystemHandler.
Trait Implementations§
Source§impl Observer for PhantomObserver
impl Observer for PhantomObserver
Source§type Event = PhantomEvent
type Event = PhantomEvent
The event type that the Observer observes.
Source§fn observe(&self, _event: &<Self::Event as Event>::This<'_>) -> Result<()>
fn observe(&self, _event: &<Self::Event as Event>::This<'_>) -> Result<()>
The observe method is called when the Observer is notified of an event. Read more
Source§fn to_system(self) -> SystemHandler<Self, PhantomMediator>where
Self: Sized,
fn to_system(self) -> SystemHandler<Self, PhantomMediator>where
Self: Sized,
Converts the Observer into a SystemHandler.
Auto Trait Implementations§
impl Freeze for PhantomObserver
impl RefUnwindSafe for PhantomObserver
impl Send for PhantomObserver
impl Sync for PhantomObserver
impl Unpin for PhantomObserver
impl UnwindSafe for PhantomObserver
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