pub enum EngineResult {
Accepted {
packet: ParsedPacket,
},
Rejected {
packet: ParsedPacket,
reason: PolicyRejection,
},
ParseError(ParseError),
}Expand description
Engine processing result.
Variants§
Accepted
Packet parsed and passed policy.
Fields
§
packet: ParsedPacketParsed packet.
Rejected
Packet parsed but failed policy.
ParseError(ParseError)
Packet failed the codec boundary.
Trait Implementations§
Source§impl Clone for EngineResult
impl Clone for EngineResult
Source§fn clone(&self) -> EngineResult
fn clone(&self) -> EngineResult
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 moreSource§impl Debug for EngineResult
impl Debug for EngineResult
Source§impl PartialEq for EngineResult
impl PartialEq for EngineResult
impl StructuralPartialEq for EngineResult
Auto Trait Implementations§
impl Freeze for EngineResult
impl RefUnwindSafe for EngineResult
impl Send for EngineResult
impl Sync for EngineResult
impl Unpin for EngineResult
impl UnsafeUnpin for EngineResult
impl UnwindSafe for EngineResult
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