pub enum OutputRouting {
Direct(HashMap<String, Sender<Packet>>),
Routed(Sender<RoutedPacketMessage>),
}Expand description
An enum representing the two ways a node’s output can be routed.
Variants§
Direct(HashMap<String, Sender<Packet>>)
Packets are sent directly to the input channels of downstream nodes.
Routed(Sender<RoutedPacketMessage>)
Packets are sent to a central engine actor for routing.
Uses Arc
Trait Implementations§
Source§impl Clone for OutputRouting
impl Clone for OutputRouting
Source§fn clone(&self) -> OutputRouting
fn clone(&self) -> OutputRouting
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OutputRouting
impl RefUnwindSafe for OutputRouting
impl Send for OutputRouting
impl Sync for OutputRouting
impl Unpin for OutputRouting
impl UnwindSafe for OutputRouting
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