Struct bluer::mesh::application::ApplicationHandle
source · pub struct ApplicationHandle { /* private fields */ }
Available on crate feature
mesh
only.Expand description
Handle to Bluetooth mesh application.
Drop this handle to unpublish.
Implementations§
source§impl ApplicationHandle
impl ApplicationHandle
sourcepub fn token(&self) -> Option<u64>
pub fn token(&self) -> Option<u64>
Token.
Only available when application was registered using Network::join
.
The token parameter serves as a unique identifier of the particular node. The token must be preserved by the application in order to authenticate itself to the mesh daemon and attach to the network as a mesh node by calling Attach() method or permanently remove the identity of the mesh node by calling Leave() method.
Trait Implementations§
source§impl Debug for ApplicationHandle
impl Debug for ApplicationHandle
Auto Trait Implementations§
impl Freeze for ApplicationHandle
impl !RefUnwindSafe for ApplicationHandle
impl Send for ApplicationHandle
impl Sync for ApplicationHandle
impl Unpin for ApplicationHandle
impl !UnwindSafe for ApplicationHandle
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