pub struct ProtocolId {
pub vendor: VendorId,
pub id: u16,
}Expand description
A protocol identifier, which is a Vendor ID and a 16-bit protocol number (Core §4.4.3.5).
Fields§
§vendor: VendorIdWhose protocol this is; VendorId::COMMON for Matter’s own.
id: u16The protocol number within that vendor’s space.
Implementations§
Source§impl ProtocolId
impl ProtocolId
Sourcepub const SECURE_CHANNEL: Self
pub const SECURE_CHANNEL: Self
0x0000 — Secure Channel: PASE, CASE, MRP standalone acknowledgements, status
reports and the check-in message (Core §4.11).
Sourcepub const INTERACTION_MODEL: Self
pub const INTERACTION_MODEL: Self
0x0001 — the Interaction Model (Core ch. 8).
Sourcepub const USER_DIRECTED_COMMISSIONING: Self
pub const USER_DIRECTED_COMMISSIONING: Self
0x0003 — User Directed Commissioning (Core §5.3).
Sourcepub const FOR_TESTING: Self
pub const FOR_TESTING: Self
0x0004 — reserved for testing.
Trait Implementations§
Source§impl Clone for ProtocolId
impl Clone for ProtocolId
impl Copy for ProtocolId
Source§impl Debug for ProtocolId
impl Debug for ProtocolId
Source§impl Default for ProtocolId
impl Default for ProtocolId
impl Eq for ProtocolId
Source§impl Hash for ProtocolId
impl Hash for ProtocolId
Source§impl Ord for ProtocolId
impl Ord for ProtocolId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ProtocolId
impl PartialEq for ProtocolId
Source§impl PartialOrd for ProtocolId
impl PartialOrd for ProtocolId
impl StructuralPartialEq for ProtocolId
Auto Trait Implementations§
impl Forget for ProtocolId
impl Freeze for ProtocolId
impl Move for ProtocolId
impl RefUnwindSafe for ProtocolId
impl Send for ProtocolId
impl Sync for ProtocolId
impl Unpin for ProtocolId
impl UnsafeUnpin for ProtocolId
impl UnwindSafe for ProtocolId
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