Lines Matching refs:intention
50 /// Enable the service identified by [`intention`].
51 fn enable(&self, intention: Intention, data: &BorrowedMsgParcel<'_>, reply: &mut BorrowedMsgParcel<'_>) -> FusionResult<()>;
52 /// Disable the service identified by [`intention`].
53 fn disable(&self, intention: Intention, data: &BorrowedMsgParcel<'_>, reply: &mut BorrowedMsgParcel<'_>) -> FusionResult<()>;
54 /// Start the service identified by [`intention`].
55 fn start(&self, intention: Intention, data: &BorrowedMsgParcel<'_>, reply: &mut BorrowedMsgParcel<'_>) -> FusionResult<()>;
56 /// Stop the service identified by [`intention`].
57 fn stop(&self, intention: Intention, data: &BorrowedMsgParcel<'_>, reply: &mut BorrowedMsgParcel<'_>) -> FusionResult<()>;
58 /// Add a watch of state of service, with the service identified by [`intention`],
60 fn add_watch(&self, intention: Intention, id: u32, data: &BorrowedMsgParcel<'_>, reply: &mut BorrowedMsgParcel<'_>) -> FusionResult<()>;
62 fn remove_watch(&self, intention: Intention, id: u32, data: &BorrowedMsgParcel<'_>, reply: &mut BorrowedMsgParcel<'_>) -> FusionResult<()>;
63 /// Set a parameter of service, with the service identified by [`intention`],
65 fn set_param(&self, intention: Intention, id: u32, data: &BorrowedMsgParcel<'_>, reply: &mut BorrowedMsgParcel<'_>) -> FusionResult<()>;
66 /// Get a parameter of service, with the service identified by [`intention`],
68 fn get_param(&self, intention: Intention, id: u32, data: &BorrowedMsgParcel<'_>, reply: &mut BorrowedMsgParcel<'_>) -> FusionResult<()>;
69 /// Interact with service identified by [`intention`] for general purpose. This interface
72 fn control(&self, intention: Intention, id: u32, data: &BorrowedMsgParcel<'_>, reply: &mut BorrowedMsgParcel<'_>) -> FusionResult<()>;
78 let intention = split_intention(code)?;
84 stub.enable(intention, data, reply)
88 stub.disable(intention, data, reply)
92 stub.start(intention, data, reply)
96 stub.stop(intention, data, reply)
100 stub.add_watch(intention, id, data, reply)
104 stub.remove_watch(intention, id, data, reply)
108 stub.set_param(intention, id, data, reply)
112 stub.get_param(intention, id, data, reply)
116 stub.control(intention, id, data, reply)
149 fn send_request(&self, action: CommonAction, intention: Intention, id: u32,
156 let code = compose_param_id(action, intention, id);
180 fn enable(&self, intention: Intention, data: &BorrowedMsgParcel<'_>,
183 self.send_request(CommonAction::Enable, intention, 0u32, data, reply)
186 fn disable(&self, intention: Intention, data: &BorrowedMsgParcel<'_>,
189 self.send_request(CommonAction::Disable, intention, 0u32, data, reply)
192 fn start(&self, intention: Intention, data: &BorrowedMsgParcel<'_>,
195 self.send_request(CommonAction::Start, intention, 0u32, data, reply)
198 fn stop(&self, intention: Intention, data: &BorrowedMsgParcel<'_>,
201 self.send_request(CommonAction::Stop, intention, 0u32, data, reply)
204 fn add_watch(&self, intention: Intention, id: u32, data: &BorrowedMsgParcel<'_>,
207 self.send_request(CommonAction::AddWatch, intention, id, data, reply)
210 fn remove_watch(&self, intention: Intention, id: u32, data: &BorrowedMsgParcel<'_>,
213 self.send_request(CommonAction::RemoveWatch, intention, id, data, reply)
216 fn set_param(&self, intention: Intention, id: u32, data: &BorrowedMsgParcel<'_>,
219 self.send_request(CommonAction::SetParam, intention, id, data, reply)
222 fn get_param(&self, intention: Intention, id: u32, data: &BorrowedMsgParcel<'_>,
225 self.send_request(CommonAction::GetParam, intention, id, data, reply)
228 fn control(&self, intention: Intention, id: u32, data: &BorrowedMsgParcel<'_>,
231 self.send_request(CommonAction::Control, intention, id, data, reply)