pub struct RouteEvent<'a> { /* private fields */ }Expand description
A packet event captured with crate::rules::Action::Route. This will take a frame in the
AF_AXP socket until it is dropped, so it should be consumed quickly. Calling
RouteEvent::into_owned returns an OwnedRouteEvent, releasing the frame at the cost of a
copy.
Implementations§
Source§impl RouteEvent<'_>
impl RouteEvent<'_>
Sourcepub fn into_owned(self) -> OwnedRouteEvent
pub fn into_owned(self) -> OwnedRouteEvent
Converts to an OwnedRouteEvent, releasing the underlying AF_XDP socket frame.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for RouteEvent<'a>
impl<'a> !RefUnwindSafe for RouteEvent<'a>
impl<'a> Send for RouteEvent<'a>
impl<'a> Sync for RouteEvent<'a>
impl<'a> Unpin for RouteEvent<'a>
impl<'a> UnsafeUnpin for RouteEvent<'a>
impl<'a> !UnwindSafe for RouteEvent<'a>
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