pub struct BothEventCombiner<S: CommunicationService, R: CommunicationService> { /* private fields */ }Expand description
详见 SplitCombiner
与 SplitCombiner 的区别在于
BothEventCombiner 会将 send_side 的所有事件均并入原事件通道
因此,BothEventCombiner 不存在 processor task
Implementations§
Source§impl<S: CommunicationService, R: CommunicationService> BothEventCombiner<S, R>
impl<S: CommunicationService, R: CommunicationService> BothEventCombiner<S, R>
Trait Implementations§
Source§impl<S: CommunicationService, R: CommunicationService> CommunicationService for BothEventCombiner<S, R>
impl<S: CommunicationService, R: CommunicationService> CommunicationService for BothEventCombiner<S, R>
fn inject(&mut self, api_receiver: APIReceiver, event_sender: EventSender)
fn start_service<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ServiceStartResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl<S: CommunicationService, R: CommunicationService> Drop for BothEventCombiner<S, R>
impl<S: CommunicationService, R: CommunicationService> Drop for BothEventCombiner<S, R>
Auto Trait Implementations§
impl<S, R> Freeze for BothEventCombiner<S, R>
impl<S, R> RefUnwindSafe for BothEventCombiner<S, R>where
S: RefUnwindSafe,
R: RefUnwindSafe,
impl<S, R> Send for BothEventCombiner<S, R>
impl<S, R> Sync for BothEventCombiner<S, R>
impl<S, R> Unpin for BothEventCombiner<S, R>
impl<S, R> UnsafeUnpin for BothEventCombiner<S, R>where
S: UnsafeUnpin,
R: UnsafeUnpin,
impl<S, R> UnwindSafe for BothEventCombiner<S, R>where
S: UnwindSafe,
R: 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