pub struct WithTimes<E, L> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<E, L> Listener for WithTimes<E, L>
impl<E, L> Listener for WithTimes<E, L>
Source§async fn begin(&mut self, cancel: &CancellationToken)
async fn begin(&mut self, cancel: &CancellationToken)
Called when the listener starts up. Read more
Source§async fn handle(
&mut self,
cancel: &CancellationToken,
event: Guard<Self::Event>,
)
async fn handle( &mut self, cancel: &CancellationToken, event: Guard<Self::Event>, )
Processes a single received event. Read more
Source§async fn after(&mut self, cannel: &CancellationToken)
async fn after(&mut self, cannel: &CancellationToken)
Called when the listener exits (whether due to cancellation, stream end, or error). Read more
Auto Trait Implementations§
impl<E, L> Freeze for WithTimes<E, L>where
L: Freeze,
impl<E, L> RefUnwindSafe for WithTimes<E, L>where
L: RefUnwindSafe,
E: RefUnwindSafe,
impl<E, L> Send for WithTimes<E, L>
impl<E, L> Sync for WithTimes<E, L>
impl<E, L> Unpin for WithTimes<E, L>
impl<E, L> UnwindSafe for WithTimes<E, L>where
L: UnwindSafe,
E: 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