Skip to content

Commit 2cb4bce

Browse files
committed
Digital Twin Graph
1 parent 11bda50 commit 2cb4bce

File tree

4 files changed

+1
-30
lines changed

4 files changed

+1
-30
lines changed

core/common/src/utils.rs

-10
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ pub enum ServiceUriSource {
4242
///
4343
/// # Arguments
4444
/// * `config_filename` - Name of the config file to load settings from.
45-
/// # Returns
46-
/// * The settings.
4745
pub fn load_settings<T>(config_filename: &str) -> Result<T, ConfigError>
4846
where
4947
T: for<'de> serde::Deserialize<'de>,
@@ -67,8 +65,6 @@ where
6765
/// * `retry_interval_ms` - The retry interval between retries in milliseconds.
6866
/// * `function` - The function to retry.
6967
/// * `context` - Context field to provide additional info for logging.
70-
/// # Returns
71-
/// * The result of the function.
7268
pub async fn execute_with_retry<T, E, Fut, F: FnMut() -> Fut>(
7369
max_retries: u32,
7470
retry_interval_ms: Duration,
@@ -112,8 +108,6 @@ where
112108
/// * `version` - The service's version.
113109
/// # `expected_communication_kind` - The service's expected communication kind.
114110
/// # `expected_communication_reference` - The service's expected communication reference.
115-
/// # Returns
116-
/// * The service's URI.
117111
pub async fn discover_service_using_chariott(
118112
chariott_uri: &str,
119113
namespace: &str,
@@ -153,8 +147,6 @@ pub async fn discover_service_using_chariott(
153147
/// * `service_uri_source` - Enum providing information on how to get the service URI.
154148
/// # `expected_communication_kind` - The service's expected communication kind.
155149
/// # `expected_communication_reference` - The service's expected communication reference.
156-
/// # Returns
157-
/// * The service's URI.
158150
pub async fn get_service_uri(
159151
service_uri_source: ServiceUriSource,
160152
expected_communication_kind: &str,
@@ -198,8 +190,6 @@ pub async fn get_service_uri(
198190
/// # Arguments
199191
/// * `subset` - The provided subset.
200192
/// * `superset` - The provided superset.
201-
/// # Returns
202-
/// * `true` if the subset is a subset of the superset, `false` otherwise.
203193
pub fn is_subset(subset: &[String], superset: &[String]) -> bool {
204194
subset.iter().all(|subset_member| {
205195
superset.iter().any(|supserset_member| subset_member == supserset_member)

core/module/digital_twin_graph/src/digital_twin_graph_config.rs

-5
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ pub struct Settings {
1616

1717
/// Load the settings.
1818
/// The settings are loaded from the default config file name.
19-
///
20-
/// # Returns
21-
/// The settings.
2219
pub fn load_settings() -> Settings {
2320
utils::load_settings(DEFAULT_CONFIG_FILENAME).unwrap()
2421
}
@@ -27,8 +24,6 @@ pub fn load_settings() -> Settings {
2724
///
2825
/// # Arguments
2926
/// * `config_filename` - The name of the config file.
30-
/// # Returns
31-
/// The settings.
3227
pub fn load_settings_with_config_filename(config_filename: &str) -> Settings {
3328
utils::load_settings(config_filename).unwrap()
3429
}

core/module/digital_twin_graph/src/digital_twin_graph_impl.rs

-14
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ impl DigitalTwinGraphImpl {
5252
/// * `digital_twin_registry_uri` - The uri for the digital twin registry service.
5353
/// * `respond_uri` - The uri for the respond service.
5454
/// * `tx` - The sender for the asynchronous channel for AnswerRequest's.
55-
/// # Returns
56-
/// A new instance of a DigitalTwinGraphImpl.
5755
pub fn new(
5856
digital_twin_registry_uri: &str,
5957
respond_uri: &str,
@@ -73,8 +71,6 @@ impl DigitalTwinGraphImpl {
7371
/// * `model_id` - The matching model id.
7472
/// * `protocol` - The required protocol.
7573
/// * `operations` - The required operations.
76-
/// # Returns
77-
/// A list of endpoint infos.
7874
pub async fn find_digital_twin_providers_with_model_id(
7975
&self,
8076
model_id: &str,
@@ -118,8 +114,6 @@ impl DigitalTwinGraphImpl {
118114
/// * `instance_id` - The matching instance id.
119115
/// * `protocol` - The required protocol.
120116
/// * `operations` - The required operations.
121-
/// # Returns
122-
/// A list of endpoint infos.
123117
pub async fn find_digital_twin_providers_with_instance_id(
124118
&self,
125119
instance_id: &str,
@@ -165,8 +159,6 @@ impl DigitalTwinGraph for DigitalTwinGraphImpl {
165159
///
166160
/// # Arguments
167161
/// * `request` - Find request.
168-
/// # Returns
169-
/// Find response.
170162
async fn find(
171163
&self,
172164
request: tonic::Request<FindRequest>,
@@ -296,8 +288,6 @@ impl DigitalTwinGraph for DigitalTwinGraphImpl {
296288
///
297289
/// # Arguments
298290
/// * `request` - Get request.
299-
/// # Returns
300-
/// Get response.
301291
async fn get(
302292
&self,
303293
request: tonic::Request<GetRequest>,
@@ -406,8 +396,6 @@ impl DigitalTwinGraph for DigitalTwinGraphImpl {
406396
///
407397
/// # Arguments
408398
/// * `request` - Set request.
409-
/// # Returns
410-
/// Set response.
411399
async fn set(
412400
&self,
413401
request: tonic::Request<SetRequest>,
@@ -421,8 +409,6 @@ impl DigitalTwinGraph for DigitalTwinGraphImpl {
421409
///
422410
/// # Arguments
423411
/// * `request` - Invoke request.
424-
/// # Returns
425-
/// Invoke response.
426412
async fn invoke(
427413
&self,
428414
request: tonic::Request<InvokeRequest>,

docs/design/modules/digital_twin_graph/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
## <a name="introduction">Introduction</a>
88

9-
The initial Ibeji provided the foundations for constructing and interacting with a digital twin on an edge device. These foundations are low-level abilities
9+
The initial Ibeji implementation provided the foundations for constructing and interacting with a digital twin on an edge device. These foundations are low-level abilities
1010
and they do not necessarily provide a consumer with the best interaction experience. However, they can be used as building blocks to build facades that
1111
provide a consumer with an abstraction that delivers a much better interaction experience. Ibeji may support multiple facades and the user can select the one
1212
that they prefer to use.

0 commit comments

Comments
 (0)