pub struct ObjectIdentifier { /* private fields */ }Expand description
BACnet Object Identifier: 10-bit type + 22-bit instance number.
Uniquely identifies a BACnet object within a device. Encoded as a
4-byte big-endian value: (object_type << 22) | instance_number.
Implementations§
Source§impl ObjectIdentifier
impl ObjectIdentifier
Sourcepub const MAX_INSTANCE: u32 = 0x3F_FFFF
pub const MAX_INSTANCE: u32 = 0x3F_FFFF
Maximum valid instance number (2^22 - 1 = 4,194,303).
Sourcepub const WILDCARD_INSTANCE: u32 = Self::MAX_INSTANCE
pub const WILDCARD_INSTANCE: u32 = Self::MAX_INSTANCE
The “wildcard” instance number used in WhoIs/IAm (4,194,303).
Sourcepub const fn new_unchecked(
object_type: ObjectType,
instance_number: u32,
) -> Self
pub const fn new_unchecked( object_type: ObjectType, instance_number: u32, ) -> Self
Create without validation. Caller must ensure instance <= MAX_INSTANCE.
Sourcepub const fn object_type(&self) -> ObjectType
pub const fn object_type(&self) -> ObjectType
The object type.
Sourcepub const fn instance_number(&self) -> u32
pub const fn instance_number(&self) -> u32
The instance number (0 to 4,194,303).
Trait Implementations§
Source§impl Clone for ObjectIdentifier
impl Clone for ObjectIdentifier
Source§fn clone(&self) -> ObjectIdentifier
fn clone(&self) -> ObjectIdentifier
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObjectIdentifier
impl Debug for ObjectIdentifier
Source§impl Display for ObjectIdentifier
impl Display for ObjectIdentifier
Source§impl Hash for ObjectIdentifier
impl Hash for ObjectIdentifier
Source§impl PartialEq for ObjectIdentifier
impl PartialEq for ObjectIdentifier
impl Copy for ObjectIdentifier
impl Eq for ObjectIdentifier
impl StructuralPartialEq for ObjectIdentifier
Auto Trait Implementations§
impl Freeze for ObjectIdentifier
impl RefUnwindSafe for ObjectIdentifier
impl Send for ObjectIdentifier
impl Sync for ObjectIdentifier
impl Unpin for ObjectIdentifier
impl UnsafeUnpin for ObjectIdentifier
impl UnwindSafe for ObjectIdentifier
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