pub enum Action {
Drop,
Forward,
Mutate(Packet),
Respond(Vec<Packet>),
Error {
code: u16,
state: [u8; 5],
msg: String,
},
}
Expand description
Handlers return a variant of this enum to indicate how the proxy should handle the packet.
Variants§
Drop
drop the packet
Forward
forward the packet unmodified
Mutate(Packet)
forward a mutated packet
Respond(Vec<Packet>)
respond to the packet without forwarding
Error
respond with an error packet
Trait Implementations§
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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