bluetooth_mesh 0.1.4

Cross-platform, full Bluetooth Mesh stack implemented in Rust. Following the Bluetooth Mesh Spec Core v1.0 by SIG. Designed to work with any almost any BLE radio (uses https://github.com/AndrewGi/btle/ for platform dependent Bluetooth drivers). While a stack is provided by the library, all the primatives and objects needed to customize and create your own stack are provided. See https://github.com/AndrewGi/BluetoothMeshRust for more.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::access::ModelIdentifier;
use crate::foundation::publication::ModelPublishInfo;

#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug)]
pub struct ModelComposition {
    pub model_identifier: ModelIdentifier,
    pub publish_info: ModelPublishInfo,
}
impl ModelComposition {
    pub fn is_sig(&self) -> bool {
        self.model_identifier.is_sig()
    }
    pub fn is_vendor(&self) -> bool {
        self.model_identifier.is_vendor()
    }
}