pub struct EventRxBuilder<T> { /* private fields */ }Implementations§
Source§impl<T: Owned> EventRxBuilder<T>
impl<T: Owned> EventRxBuilder<T>
pub fn new(spec: InterfaceEvent<T>, object_path: String) -> Self
pub fn inline<'a>( self, setup: &'a RoleSetup<'a>, event_handler: impl FnMut(EndpointAddr, T) + 'static, ) -> InlineRxRouterSetup<'a, impl FnMut(EndpointAddr, &Packet) + 'static>
pub fn inline_lazy<'a>( self, setup: &'a RoleSetup<'a>, event_handler: impl FnMut(EndpointAddr, T::Lazy<'_>) + 'static, ) -> InlineRxRouterSetup<'a, impl FnMut(EndpointAddr, &Packet) + 'static>
pub fn inline_untyped<'a>( self, setup: &'a RoleSetup<'a>, event_handler: impl FnMut(EndpointAddr, &Packet) + 'static, ) -> InlineRxRouterSetup<'a, impl FnMut(EndpointAddr, &Packet) + 'static>
pub fn route_to_local_queue<'a>( self, setup: &'a RoleSetup<'a>, handler: impl FnMut(EndpointAddr, &Packet) -> Option<Sender<Packet>> + 'static, )
pub fn route_to_worker<'a>( self, setup: &'a RoleSetup<'a>, handler: impl FnMut(EndpointAddr, &Packet) -> Option<WorkerId> + 'static, )
pub fn queued<'a>( self, setup: &'a RoleSetup<'a>, handler: impl AsyncFnMut(EndpointAddr, T::Lazy<'_>) + 'static, ) -> QueuedEventRxRouterSetup<'a>
pub fn queued_untyped<'a>( self, setup: &'a RoleSetup<'a>, event_handler: impl AsyncFnMut(EndpointAddr, Packet) + 'static, ) -> QueuedEventRxRouterSetup<'a>
pub fn proxy_load_balance(self, setup: &RoleSetup<'_>)
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for EventRxBuilder<T>
impl<T> RefUnwindSafe for EventRxBuilder<T>where
T: RefUnwindSafe,
impl<T> Send for EventRxBuilder<T>where
T: Send,
impl<T> Sync for EventRxBuilder<T>where
T: Sync,
impl<T> Unpin for EventRxBuilder<T>where
T: Unpin,
impl<T> UnwindSafe for EventRxBuilder<T>where
T: 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