pub enum CharacteristicNotifierRequest {
OnNotification {
value: ReadValue,
responder: CharacteristicNotifierOnNotificationResponder,
},
}
Expand description
Listens to characteristic notifications & indications.
Variants§
OnNotification
Called when a characteristic value notification or indication is received from the server.
- request
value
the value of the updated characteristic.
- response An empty response should be sent immediately as an acknowledgement that the notification was received (for flow control).
Implementations§
Source§impl CharacteristicNotifierRequest
impl CharacteristicNotifierRequest
pub fn into_on_notification( self, ) -> Option<(ReadValue, CharacteristicNotifierOnNotificationResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CharacteristicNotifierRequest
impl !RefUnwindSafe for CharacteristicNotifierRequest
impl Send for CharacteristicNotifierRequest
impl Sync for CharacteristicNotifierRequest
impl Unpin for CharacteristicNotifierRequest
impl !UnwindSafe for CharacteristicNotifierRequest
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