Comprehensive Rust(한국어) 202412
*/ String wishWithProvider(IBirthdayInfoProvider provider); /** The same thing, but using `IBinder`. */ String wishWithErasedProvider(IBinder provider); } birthday_service/src/client.rs: /// Rust struct expect("BirthdayService 에 연결할 수 없습니다."); // Create a binder object for the `IBirthdayInfoProvider` interface. let provider = BnBirthdayInfoProvider::new_binder( InfoProvider { name: name.clone(), age: years as u8 }, Bi the service. service.wishWithProvider(&provider)?; // Perform the same operation but passing the provider as an `SpIBinder`. service.wishWithErasedProvider(&provider.as_binder())?; } • Note the usage of0 码力 | 369 页 | 1.29 MB | 10 月前3Comprehensive Rust
*/ String wishWithProvider(IBirthdayInfoProvider provider); /** The same thing, but using `IBinder`. */ String wishWithErasedProvider(IBinder provider); } birthday_service/src/client.rs: /// Rust struct expect("BirthdayService 에 연결할 수 없습니다."); // Create a binder object for the `IBirthdayInfoProvider` interface. let provider = BnBirthdayInfoProvider::new_binder( InfoProvider { name: name.clone(), age: years as u8 }, Bi the service. service.wishWithProvider(&provider)?; // Perform the same operation but passing the provider as an `SpIBinder`. service.wishWithErasedProvider(&provider.as_binder())?; } • Note the usage of0 码力 | 368 页 | 1.29 MB | 1 年前3
共 2 条
- 1
相关搜索词