enum Notifier {
EventFd(OwnedFd),
Pipe {
read_pipe: OwnedFd,
write_pipe: OwnedFd,
},
}
Expand description
The notifier for Linux.
Certain container runtimes do not expose eventfd to the client, as it relies on the host and can be used to “escape” the container under certain conditions. Gramine is the prime example, see here. In this case, fall back to using a pipe.
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Notifier
impl RefUnwindSafe for Notifier
impl Send for Notifier
impl Sync for Notifier
impl Unpin for Notifier
impl UnwindSafe for Notifier
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