pub enum Patch {
Internal(Id),
External,
}Expand description
A network endpoint patch type
When creating internal test networks (running inside the same
daemon, but communicating via different endpoint backends, you can
chose the “internal” option to patch them together. This means
manually introducing Tcp endpoints to each other, or simply
hooking up the internal memory channel of netmod-mem.
Use the External type to use the endpoint to configure against
an external target (meaning actual network traffic).
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Patch
impl RefUnwindSafe for Patch
impl Send for Patch
impl Sync for Patch
impl Unpin for Patch
impl UnwindSafe for Patch
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