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>
Source§fn install(
&mut self,
api_receiver: InternalAPIReceiver,
event_sender: InternalEventSender,
)
fn install( &mut self, api_receiver: InternalAPIReceiver, event_sender: InternalEventSender, )
安装服务
该方法仅进行服务的依赖注入,并不真正创建任务
应具备幂等性
该方法仅进行服务的依赖注入,并不真正创建任务
应具备幂等性
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