pub enum SubscribeReason {
Write,
Term,
Restore,
Other(u8),
}Expand description
Why a peer’s subscription state changed (the reason of
GattsEvent::SubscriptionChanged).
Variants§
Write
The peer wrote the characteristic’s CCCD.
Term
The connection is about to be terminated, so NimBLE is clearing the peer’s subscription
state. The cur_* flags are therefore false — this is not the peer opting out.
Restore
A bond was restored from persistence and the peer’s subscription state came back with it. Nothing was written on the wire; the peer is subscribed as of now.
Other(u8)
A reason code unknown to this version of the crate.
Trait Implementations§
Source§impl Clone for SubscribeReason
impl Clone for SubscribeReason
Source§fn clone(&self) -> SubscribeReason
fn clone(&self) -> SubscribeReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SubscribeReason
Source§impl Debug for SubscribeReason
impl Debug for SubscribeReason
impl Eq for SubscribeReason
Source§impl Hash for SubscribeReason
impl Hash for SubscribeReason
Source§impl PartialEq for SubscribeReason
impl PartialEq for SubscribeReason
impl StructuralPartialEq for SubscribeReason
Auto Trait Implementations§
impl Freeze for SubscribeReason
impl RefUnwindSafe for SubscribeReason
impl Send for SubscribeReason
impl Sync for SubscribeReason
impl Unpin for SubscribeReason
impl UnsafeUnpin for SubscribeReason
impl UnwindSafe for SubscribeReason
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)