pub struct Intercept<D1, D2> { /* private fields */ }Trait Implementations§
Source§impl<Ctx, D1, D2> ConcurrentDispatchEvent<Ctx> for Intercept<D1, D2>where
Ctx: 'static + Send,
D1: ConcurrentDispatchEvent<Ctx>,
D2: ConcurrentDispatchEvent<Ctx, Error = D1::Error>,
impl<Ctx, D1, D2> ConcurrentDispatchEvent<Ctx> for Intercept<D1, D2>where
Ctx: 'static + Send,
D1: ConcurrentDispatchEvent<Ctx>,
D2: ConcurrentDispatchEvent<Ctx, Error = D1::Error>,
type Error = <D1 as ConcurrentDispatchEvent<Ctx>>::Error
type Future = Either<<D1 as ConcurrentDispatchEvent<Ctx>>::Future, <D2 as ConcurrentDispatchEvent<Ctx>>::Future>
fn concurrent_dispatch_event( &self, ev: Event, ctx: Ctx, ) -> Result<Self::Future, (Event, Ctx)>
Source§impl<Ctx, D1, D2> DispatchEvent<Ctx> for Intercept<D1, D2>
impl<Ctx, D1, D2> DispatchEvent<Ctx> for Intercept<D1, D2>
type Error = <D1 as DispatchEvent<Ctx>>::Error
type Future<'s> = Either<<D1 as DispatchEvent<Ctx>>::Future<'s>, <D2 as DispatchEvent<Ctx>>::Future<'s>> where Self: 's, Ctx: 's
fn dispatch_event<'s>( &'s mut self, ev: Event, ctx: &'s mut Ctx, ) -> Result<Self::Future<'s>, (Event, &'s mut Ctx)>
Auto Trait Implementations§
impl<D1, D2> Freeze for Intercept<D1, D2>
impl<D1, D2> RefUnwindSafe for Intercept<D1, D2>where
D1: RefUnwindSafe,
D2: RefUnwindSafe,
impl<D1, D2> Send for Intercept<D1, D2>
impl<D1, D2> Sync for Intercept<D1, D2>
impl<D1, D2> Unpin for Intercept<D1, D2>
impl<D1, D2> UnsafeUnpin for Intercept<D1, D2>where
D1: UnsafeUnpin,
D2: UnsafeUnpin,
impl<D1, D2> UnwindSafe for Intercept<D1, D2>where
D1: UnwindSafe,
D2: 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more