Skip to content

Commit

Permalink
Tided up docs for the agent module.
Browse files Browse the repository at this point in the history
  • Loading branch information
horned-sphere committed Jun 20, 2024
1 parent e0c2c2c commit 4a4ad2a
Show file tree
Hide file tree
Showing 9 changed files with 163 additions and 141 deletions.
2 changes: 1 addition & 1 deletion docs/downlink.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ the agent at `"/node"` on the host `"swim://example.remote:8080"`. Here `OpenVal
a `HandlerAction` that results in a value of type:

```rust
swimos::agent::agent_model::downlink::hosted::ValueDownlinkHandle
swimos::agent::agent_model::downlink::ValueDownlinkHandle
```

This handle can be used to set the value of the remote lane, through the downlink.
Expand Down
2 changes: 1 addition & 1 deletion example_apps/event_downlink/src/consumer/agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

use swimos::agent::{
agent_lifecycle::HandlerContext,
agent_model::downlink::hosted::EventDownlinkHandle,
agent_model::downlink::EventDownlinkHandle,
event_handler::{EventHandler, HandlerAction, HandlerActionExt},
lanes::{CommandLane, ValueLane},
lifecycle, projections,
Expand Down
2 changes: 1 addition & 1 deletion example_apps/local_downlink/src/consumer/agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

use swimos::agent::{
agent_lifecycle::HandlerContext,
agent_model::downlink::hosted::ValueDownlinkHandle,
agent_model::downlink::ValueDownlinkHandle,
event_handler::{EventHandler, HandlerAction, HandlerActionExt},
lanes::{CommandLane, ValueLane},
lifecycle, projections,
Expand Down
2 changes: 1 addition & 1 deletion example_apps/map_downlink/src/consumer/agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use example_util::format_map;
use swimos::agent::{
agent_lifecycle::HandlerContext,
agent_model::downlink::hosted::MapDownlinkHandle,
agent_model::downlink::MapDownlinkHandle,
event_handler::{EventHandler, HandlerAction, HandlerActionExt},
lanes::{CommandLane, ValueLane},
lifecycle, projections,
Expand Down
2 changes: 1 addition & 1 deletion example_apps/value_downlink/src/consumer/agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

use swimos::agent::{
agent_lifecycle::HandlerContext,
agent_model::downlink::hosted::ValueDownlinkHandle,
agent_model::downlink::ValueDownlinkHandle,
event_handler::{EventHandler, HandlerAction, HandlerActionExt},
lanes::{CommandLane, ValueLane},
lifecycle, projections,
Expand Down
2 changes: 1 addition & 1 deletion server/swimos_agent/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pub mod agent_lifecycle;
/// and stores.
pub mod agent_model;

/// Configuration types for downlinks started from agent lifecycles.
/// Configuration types for downlinks that are started from agent lifecycles.
pub mod config;

/// Traits and builders for constructing downlink lifecycles for downlinks started from agent lifecycles.
Expand Down
1 change: 1 addition & 0 deletions swimos/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ swimos_server_app = { path = "../server/swimos_server_app", optional = true }
swimos_agent = { path = "../server/swimos_agent", optional = true }
swimos_agent_derive = { path = "../server/swimos_agent_derive", optional = true }
swimos_remote = { path = "../runtime/swimos_remote", optional = true}
swimos_form = { path = "../api/swimos_form" }

[dev-dependencies]
parking_lot = { workspace = true }
Expand Down
Loading

0 comments on commit 4a4ad2a

Please sign in to comment.