pub struct GattService {
pub status: Status,
pub service_handle: AttributeHandle,
}
Expand description
Parameters returned by the GATT Add Service and GATT Include Service commands.
Fields§
§status: Status
Did the command fail, and if so, how?
service_handle: AttributeHandle
Handle of the Service
When this service is added to the server, a handle is allocated by the server to this
service. Also server allocates a range of handles for this service from service_handle
to
service_handle + [max_attribute_records](crate::vendor::command::gatt::AddServiceParameters::max_attribute_records)
.
Trait Implementations§
Source§impl Clone for GattService
impl Clone for GattService
Source§fn clone(&self) -> GattService
fn clone(&self) -> GattService
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GattService
impl Debug for GattService
impl Copy for GattService
Auto Trait Implementations§
impl Freeze for GattService
impl RefUnwindSafe for GattService
impl Send for GattService
impl Sync for GattService
impl Unpin for GattService
impl UnwindSafe for GattService
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