pub struct ExpectedProcess<F> { /* private fields */ }Expand description
Accept one process of this OS user, whose PID expected returns when asked.
expected is called at most once per Policy::grant, and only after the
same-user check passes. Like the policy, it must not block or perform I/O:
return a PID the consumer already read, for example from a record it
watches, or None when there is no process to accept.
Implementations§
Trait Implementations§
Source§impl<F: Clone> Clone for ExpectedProcess<F>
impl<F: Clone> Clone for ExpectedProcess<F>
impl<F: Copy> Copy for ExpectedProcess<F>
Auto Trait Implementations§
impl<F> Freeze for ExpectedProcess<F>where
F: Freeze,
impl<F> RefUnwindSafe for ExpectedProcess<F>where
F: RefUnwindSafe,
impl<F> Send for ExpectedProcess<F>where
F: Send,
impl<F> Sync for ExpectedProcess<F>where
F: Sync,
impl<F> Unpin for ExpectedProcess<F>where
F: Unpin,
impl<F> UnsafeUnpin for ExpectedProcess<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for ExpectedProcess<F>where
F: UnwindSafe,
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