pub struct TreeWorkerResponder { /* private fields */ }Expand description
Gateway-side responder for a tree worker.
Mirrors Gateway.TreeWorkerResponder: it relays routing events from the
worker running on the gateway to the admin node through the gateway
channel.
Implementations§
Source§impl TreeWorkerResponder
impl TreeWorkerResponder
Sourcepub fn routing_message(&self, arg: &RoutingEvent) -> Message
pub fn routing_message(&self, arg: &RoutingEvent) -> Message
Build the routing message to send on the gateway channel.
Corrected construction (upstream 490323d): srcid is always the
responder’s own worker id; the event only carries
event/gateway/targets.
Sourcepub fn ev_routing(&self, chan: &mut Channel, arg: &RoutingEvent)
pub fn ev_routing(&self, chan: &mut Channel, arg: &RoutingEvent)
Relay a routing event onto the gateway channel (mirrors _ev_routing
sending the RoutingMessage on gwchan).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TreeWorkerResponder
impl RefUnwindSafe for TreeWorkerResponder
impl Send for TreeWorkerResponder
impl Sync for TreeWorkerResponder
impl Unpin for TreeWorkerResponder
impl UnsafeUnpin for TreeWorkerResponder
impl UnwindSafe for TreeWorkerResponder
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