We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pub fn to_peripheral_id(id: *const c_char) -> PeripheralId { let id_str = unsafe { CStr::from_ptr(id) }; let id_str = id_str.to_str().expect("Invalid UTF-8 sequence"); info!("to_peripheral_id, id_str: {:?}", id_str); #[cfg(any(target_os = "macos", target_os = "ios"))] return PeripheralId::from(Uuid::parse_str(id_str).unwrap()); #[cfg(target_os = "android")] return PeripheralId(BDAddr::from_str_delim(&id_str).unwrap()); #[cfg(target_os = "windows")] PeripheralId::from(BDAddr::from_str_delim(&id_str).unwrap()) }
why not provide public method
droidplug/peripheral.rs:42:25 | 42 | pub struct PeripheralId(pub(super) BDAddr); | ^^^^^^^^^^^^^^^^^ private field
The text was updated successfully, but these errors were encountered:
No branches or pull requests
why not provide public method
droidplug/peripheral.rs:42:25
|
42 | pub struct PeripheralId(pub(super) BDAddr);
| ^^^^^^^^^^^^^^^^^ private field
The text was updated successfully, but these errors were encountered: