extrasafe_multiarch/builtins/mod.rs
1//! Built-in [`RuleSet`](crate::RuleSet)s
2
3/// A struct whose purpose is to make you read the documentation for the function you're calling.
4/// If you're reading this, go read the documentation for the function that is returning this
5/// object.
6#[must_use]
7pub struct YesReally<T> {
8 inner: T,
9}
10
11impl<T> YesReally<T> {
12 /// Confirm you really wanted to call the function and return its result.
13 pub fn yes_really(self) -> T {
14 self.inner
15 }
16
17 /// Make a [`YesReally`].
18 pub fn new(inner: T) -> YesReally<T> {
19 YesReally {
20 inner,
21 }
22 }
23}
24
25pub mod basic;
26pub use basic::BasicCapabilities;
27
28pub mod systemio;
29pub use systemio::SystemIO;
30
31pub mod network;
32pub use network::Networking;
33
34pub mod time;
35pub use time::Time;
36
37pub mod danger_zone;
38pub mod pipes;