pub trait ServiceAction {
// Required method
fn act(
&self,
service: ServiceKind,
payload: &[u8],
operation: &str,
) -> Result<(), ServiceEffectError>;
}Expand description
Acts for the bare services: alarms, launches and the context watch.
Required Methods§
Sourcefn act(
&self,
service: ServiceKind,
payload: &[u8],
operation: &str,
) -> Result<(), ServiceEffectError>
fn act( &self, service: ServiceKind, payload: &[u8], operation: &str, ) -> Result<(), ServiceEffectError>
Takes service’s act with the request’s payload under operation.
§Errors
The action could not be taken.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".