pub struct Service { /* private fields */ }Expand description
A Bluetooth GATT service.
Implementations§
Source§impl Service
impl Service
Sourcepub async fn uuid_async(&self) -> Result<Uuid>
pub async fn uuid_async(&self) -> Result<Uuid>
This method is kept for compatibility with bluest.
Sourcepub async fn is_primary(&self) -> Result<bool>
pub async fn is_primary(&self) -> Result<bool>
Whether this is a primary service of the device.
Sourcepub async fn discover_characteristics(&self) -> Result<Vec<Characteristic>>
pub async fn discover_characteristics(&self) -> Result<Vec<Characteristic>>
Returns all characteristics associated with this service.
This method is kept for compatibility with bluest.
Sourcepub async fn discover_characteristics_with_uuid(
&self,
uuid: Uuid,
) -> Result<Vec<Characteristic>>
pub async fn discover_characteristics_with_uuid( &self, uuid: Uuid, ) -> Result<Vec<Characteristic>>
Returns the characteristic(s) with the given Uuid.
This method is kept for compatibility with bluest.
Sourcepub async fn characteristics(&self) -> Result<Vec<Characteristic>>
pub async fn characteristics(&self) -> Result<Vec<Characteristic>>
Get previously discovered characteristics.
Sourcepub async fn discover_included_services(&self) -> Result<Vec<Service>>
pub async fn discover_included_services(&self) -> Result<Vec<Service>>
Returns the included services of this service.
This method is kept for compatibility with bluest.
Sourcepub async fn discover_included_services_with_uuid(
&self,
uuid: Uuid,
) -> Result<Vec<Service>>
pub async fn discover_included_services_with_uuid( &self, uuid: Uuid, ) -> Result<Vec<Service>>
Returns the included service(s) with the given Uuid.
Sourcepub async fn included_services(&self) -> Result<Vec<Service>>
pub async fn included_services(&self) -> Result<Vec<Service>>
Returns the included services of this service.
Trait Implementations§
impl Eq for Service
Auto Trait Implementations§
impl !Freeze for Service
impl RefUnwindSafe for Service
impl Send for Service
impl Sync for Service
impl Unpin for Service
impl UnsafeUnpin for Service
impl !UnwindSafe for Service
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more