pub struct OnInjectSuccess(pub Box<dyn FnOnce(i32) + Send + Sync>);Expand description
A one-shot callback invoked with the child-side fd number returned by
SECCOMP_IOCTL_NOTIF_ADDFD after a successful InjectFdSendTracked.
Wraps a boxed closure with a manual Debug impl so that NotifAction
can keep deriving Debug. The closure is both Send and Sync so
that &NotifAction remains Send (required because NotifAction is
borrowed across .await points in the notifier loop).
Tuple Fields§
§0: Box<dyn FnOnce(i32) + Send + Sync>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OnInjectSuccess
impl !RefUnwindSafe for OnInjectSuccess
impl Send for OnInjectSuccess
impl Sync for OnInjectSuccess
impl Unpin for OnInjectSuccess
impl UnsafeUnpin for OnInjectSuccess
impl !UnwindSafe for OnInjectSuccess
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