Struct starbase_events::CallbackSubscriber
source · pub struct CallbackSubscriber<E: Event> { /* private fields */ }Implementations§
source§impl<E: Event> CallbackSubscriber<E>
impl<E: Event> CallbackSubscriber<E>
pub fn new<F: SubscriberFunc<E> + 'static>(func: F, once: bool) -> Self
Trait Implementations§
source§impl<E: Event> Subscriber<E> for CallbackSubscriber<E>
impl<E: Event> Subscriber<E> for CallbackSubscriber<E>
Auto Trait Implementations§
impl<E> !RefUnwindSafe for CallbackSubscriber<E>
impl<E> Send for CallbackSubscriber<E>
impl<E> Sync for CallbackSubscriber<E>
impl<E> Unpin for CallbackSubscriber<E>
impl<E> !UnwindSafe for CallbackSubscriber<E>
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