Generate core runtime API shims
This commit is contained in:
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