pub struct Subscribe;Trait Implementations§
Source§impl<E: Event, T> ResolveHandler<E, T> for Subscribewhere
T: EventSubscriber<E>,
impl<E: Event, T> ResolveHandler<E, T> for Subscribewhere
T: EventSubscriber<E>,
const HANDLER_TYPE: &'static str = HANDLER_TYPE
type Error = <T as EventSubscriber<E>>::Error
fn apply<'life0, 'async_trait>(
entity: &'life0 mut Option<T>,
event: E,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for Subscribe
impl RefUnwindSafe for Subscribe
impl Send for Subscribe
impl Sync for Subscribe
impl Unpin for Subscribe
impl UnwindSafe for Subscribe
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