Skip to content

Commit 1504f19

Browse files
committed
Documented swimos_route.
1 parent d154ea0 commit 1504f19

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

swimos_utilities/swimos_route/src/lib.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
//! # SwimOS routes
16+
//!
17+
//! A route is a URI with no authority that specified the location of a single SwimOS agent instance.
18+
//! It does not specify the host on which the agent can be found and this information must be retrieved
19+
//! from a routing table or provided separately.
20+
//!
21+
//! This crate contains:
22+
//!
23+
//! - A type to represent a [route URI](`RouteUri``).
24+
//! - [Route patterns](`RoutePattern`) that can be used to extract components from the path of a
25+
//! route URI.
26+
1527
mod route_pattern;
1628
mod route_uri;
1729

swimos_utilities/swimos_route/src/route_uri/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ impl RouteUri {
104104
}
105105
}
106106

107+
/// Error type that is produced by an attempt to parse an invalid [`RouteUri`] from a string.
107108
#[derive(Debug, Clone, PartialEq, Eq)]
108109
pub struct InvalidRouteUri(String);
109110

0 commit comments

Comments
 (0)