pub enum ForwardResult {
Forwarded {
next_hop: SocketAddr,
packet: Bytes,
latency_ns: u64,
},
Local(Bytes),
Dropped(ProxyError),
}Expand description
Result of forwarding a packet
Variants§
Forwarded
Packet forwarded to next hop
Fields
§
next_hop: SocketAddrNext hop address
Local(Bytes)
Packet is for local delivery
Dropped(ProxyError)
Packet dropped
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ForwardResult
impl RefUnwindSafe for ForwardResult
impl Send for ForwardResult
impl Sync for ForwardResult
impl Unpin for ForwardResult
impl UnsafeUnpin for ForwardResult
impl UnwindSafe for ForwardResult
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