pub struct RoutingEvent {
pub event: String,
pub gateway: String,
pub targets: String,
}Expand description
Routing event data handed to a TreeWorkerResponder.
Mirrors the arg dict of upstream TreeWorkerResponder._ev_routing
({"event": ..., "gateway": ..., "targets": ...}). There is deliberately
NO srcid field: the responder always stamps its own source worker id.
Upstream commit 490323d fixed RoutingMessage(**arg, srcid=self.srcwkr)
(keyword-after-**kwargs is a syntax error before Python 3.5) into
RoutingMessage(srcid=self.srcwkr, **arg); modeling the event without a
srcid makes that whole bug class unrepresentable.
Fields§
§event: StringRouting event name (eg. “connect”, “reroute”).
gateway: StringGateway the event relates to.
targets: StringTarget nodes of the event.
Trait Implementations§
Source§impl Clone for RoutingEvent
impl Clone for RoutingEvent
Source§impl Debug for RoutingEvent
impl Debug for RoutingEvent
impl Eq for RoutingEvent
Source§impl PartialEq for RoutingEvent
impl PartialEq for RoutingEvent
impl StructuralPartialEq for RoutingEvent
Auto Trait Implementations§
impl Freeze for RoutingEvent
impl RefUnwindSafe for RoutingEvent
impl Send for RoutingEvent
impl Sync for RoutingEvent
impl Unpin for RoutingEvent
impl UnsafeUnpin for RoutingEvent
impl UnwindSafe for RoutingEvent
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