Generate core runtime API shims
This commit is contained in:
1 parent
7086af9a6f
commit
a007313785
12 files changed
+7223
-536
No files matched your search
+6538
-160
File diff suppressed because it is too large.
Load diff
@@ -18,6 +18,27 @@ pub mod message_pack {
|
||||
pub struct MessagePackWriter;
|
||||
}
|
||||
|
||||
/// Project-owned boundary types for external logging signatures.
|
||||
pub mod logging {
|
||||
pub trait ILoggerFactory {}
|
||||
|
||||
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
|
||||
pub struct LogLevel(pub i32);
|
||||
}
|
||||
|
||||
/// Project-owned boundary types for external networking signatures.
|
||||
pub mod net {
|
||||
pub struct RateLimiter;
|
||||
pub struct Socket;
|
||||
pub struct TcpStream;
|
||||
pub struct UdpSocket;
|
||||
}
|
||||
|
||||
/// Project-owned boundary types for external service-collection signatures.
|
||||
pub mod services {
|
||||
pub trait IServiceCollection {}
|
||||
}
|
||||
|
||||
/// Common behavior for program shims while the network stack is unimplemented.
|
||||
pub mod shim {
|
||||
use std::process::ExitCode;
|
||||
|
||||
Reference in new issue
Block a user