Lines Matching defs:PyResult
70 pub fn load_from_file(&mut self, device_config: &path::Path) -> PyResult<()> { in load_from_file()
191 pub async fn power_on(&self) -> PyResult<()> { in power_on()
215 callback: impl Fn(Python, Connection) -> PyResult<()> + Send + 'static, in on_connection()
229 pub async fn start_scanning(&self, filter_duplicates: bool) -> PyResult<()> { in start_scanning()
244 callback: impl Fn(Python, Advertisement) -> PyResult<()> + Send + 'static, in on_advertisement()
258 pub fn set_advertising_data(&mut self, adv_data: AdvertisementDataBuilder) -> PyResult<()> { in set_advertising_data()
282 pub async fn start_advertising(&mut self, auto_restart: bool) -> PyResult<()> { in start_advertising()
313 ) -> PyResult<()> { in start_advertising_extended()
392 pub async fn stop_advertising(&mut self) -> PyResult<()> { in stop_advertising()
409 pub async fn stop_advertising_extended(&mut self) -> PyResult<()> { in stop_advertising_extended()
436 server: impl Fn(Python, LeConnectionOrientedChannel) -> PyResult<()> + Send + 'static, in register_l2cap_channel_server()
504 pub async fn disconnect(&mut self, reason: Option<ErrorCode>) -> PyResult<()> { in disconnect()
519 callback: impl Fn(Python, ErrorCode) -> PyResult<()> + Send + 'static, in on_disconnection()