File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
swimos_utilities/swimos_route/src Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
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
+
15
27
mod route_pattern;
16
28
mod route_uri;
17
29
Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ impl RouteUri {
104
104
}
105
105
}
106
106
107
+ /// Error type that is produced by an attempt to parse an invalid [`RouteUri`] from a string.
107
108
#[ derive( Debug , Clone , PartialEq , Eq ) ]
108
109
pub struct InvalidRouteUri ( String ) ;
109
110
You can’t perform that action at this time.
0 commit comments