MCPcopy Create free account
hub / github.com/PowerShell/DSC / set_resource

Method set_resource

lib/dsc-lib/src/progress.rs:143–148  ·  view source on GitHub ↗

Set the resource being operated on # Arguments `name` - The name of the resource being operated on `resource_type` - The type of the resource being operated on `result` - The result of the operation

(&mut self, name: &str, resource_type: &FullyQualifiedTypeName)

Source from the content-addressed store, hash-verified

141 /// * `result` - The result of the operation
142 ///
143 pub fn set_resource(&mut self, name: &str, resource_type: &FullyQualifiedTypeName) {
144 self.progress_value.resource_name = Some(name.to_string());
145 self.progress_value.resource_type = Some(resource_type.clone());
146 self.progress_value.result = None;
147 self.progress_value.failure = None;
148 }
149
150 /// Set the result of the operation. This will clear any error.
151 ///

Callers 4

invoke_getMethod · 0.80
invoke_setMethod · 0.80
invoke_testMethod · 0.80
invoke_exportMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected