pub struct RedirectGuard { /* private fields */ }Expand description
RAII guard that removes kernel redirect rules on drop.
Handles graceful shutdown cleanup. Note: if the process is SIGKILL’d, this destructor does not run — stale rules are cleaned up on next startup by the redirect install function (which deletes any existing table first).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RedirectGuard
impl RefUnwindSafe for RedirectGuard
impl Send for RedirectGuard
impl Sync for RedirectGuard
impl Unpin for RedirectGuard
impl UnsafeUnpin for RedirectGuard
impl UnwindSafe for RedirectGuard
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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