15
15
#[ doc( inline) ]
16
16
pub use swimos_model as model;
17
17
18
- /// Defines the low level API for implementing Swim agents .
18
+ /// Defines the low level API for implementing Swim applications .
19
19
pub mod api {
20
20
pub use swimos_api:: agent:: { Agent , DownlinkKind , UplinkKind } ;
21
21
pub use swimos_utilities:: handlers:: NoHandler ;
22
22
23
+ /// Address types to refer to the location of agent instances.
23
24
pub mod address {
24
25
pub use swimos_api:: address:: { Address , RelativeAddress } ;
25
26
}
26
27
27
- /// Error
28
+ /// Error types produced by implementations of the implementations of the Swim API.
28
29
pub mod error {
29
30
pub use swimos_api:: error:: {
30
31
AgentInitError , AgentRuntimeError , AgentTaskError , DownlinkFailureReason ,
@@ -33,6 +34,7 @@ pub mod api {
33
34
} ;
34
35
}
35
36
37
+ /// Defines the interface for defining Swim agent implementations.
36
38
pub mod agent {
37
39
pub use swimos_api:: agent:: {
38
40
AgentConfig , AgentContext , AgentInitResult , AgentTask , BoxAgent , DownlinkKind ,
@@ -44,41 +46,54 @@ pub mod api {
44
46
}
45
47
}
46
48
47
- pub mod utilities {
49
+ /// Retry strategies for processes that could fail.
50
+ pub mod retry {
48
51
pub use swimos_utilities:: future:: { Quantity , RetryStrategy } ;
49
52
}
50
53
54
+ /// Descriptions of agent routes and patterns for matching against them.
51
55
pub mod route {
52
56
pub use swimos_utilities:: routing:: RouteUri ;
53
57
pub use swimos_utilities:: routing:: { ApplyError , ParseError , RoutePattern , UnapplyError } ;
54
58
}
55
59
60
+ /// Channels and error types for communication between the SwimOS runtime and Swim agents.
56
61
pub mod io {
62
+
63
+ /// Bidirectional byte channels used to communicate between the SwimOS runtime and Swim agents
64
+ /// instances.
57
65
pub mod channels {
58
66
pub use swimos_utilities:: byte_channel:: {
59
67
are_connected, byte_channel, ByteReader , ByteWriter ,
60
68
} ;
61
69
}
70
+
71
+ /// Error types that can be produced when serializing and deserializing messages within the SwimOS
72
+ /// runtime.
62
73
pub mod errors {
63
74
pub use swimos_api:: error:: { FrameIoError , InvalidFrame } ;
64
75
pub use swimos_recon:: parser:: { AsyncParseError , ParseError } ;
65
76
}
77
+
66
78
}
67
79
80
+ /// The core Swim server application runtime.
68
81
#[ cfg( feature = "server" ) ]
69
82
pub mod server {
70
83
pub use swimos_server_app:: {
71
84
BoxServer , DeflateConfig , IntrospectionConfig , RemoteConnectionsConfig , Server ,
72
85
ServerBuilder , ServerHandle , WindowBits ,
73
86
} ;
74
87
88
+ /// Configuration for TLS support in the server.
75
89
pub mod tls {
76
90
pub use swimos_remote:: tls:: {
77
91
CertChain , CertFormat , CertificateFile , ClientConfig , PrivateKey , ServerConfig ,
78
92
TlsConfig ,
79
93
} ;
80
94
}
81
95
96
+ /// Error types that can be produced when initializing and executing the server.
82
97
pub mod errors {
83
98
pub use swimos_remote:: tls:: TlsError ;
84
99
pub use swimos_remote:: ConnectionError ;
0 commit comments