Struct comet_eventbus::EventListener
source · pub struct EventListener<T> { /* private fields */ }
Expand description
An EventListener
wrapper for Listener
Implementations§
source§impl<T: 'static> EventListener<T>
impl<T: 'static> EventListener<T>
sourcepub async fn unregister(self)
pub async fn unregister(self)
shorthand for unregister listener from eventbus
Trait Implementations§
source§impl<T> Clone for EventListener<T>
impl<T> Clone for EventListener<T>
source§impl<T> Debug for EventListener<T>
impl<T> Debug for EventListener<T>
source§impl<T> Hash for EventListener<T>
impl<T> Hash for EventListener<T>
source§impl<T> PartialEq<EventListener<T>> for EventListener<T>
impl<T> PartialEq<EventListener<T>> for EventListener<T>
impl<T> Eq for EventListener<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for EventListener<T>
impl<T> Send for EventListener<T>where T: Send,
impl<T> Sync for EventListener<T>where T: Sync,
impl<T> Unpin for EventListener<T>where T: Unpin,
impl<T> !UnwindSafe for EventListener<T>
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request