pub struct BACnetDeviceObjectReference {
pub device_identifier: Option<ObjectIdentifier>,
pub object_identifier: ObjectIdentifier,
}Expand description
BACnet Device Object Reference.
Clause 21 encodes the optional device identifier as context [0] followed
by the required object identifier as context [1]. None identifies a
local object, including Staging target references.
Fields§
§device_identifier: Option<ObjectIdentifier>Optional device identifier (None = local device).
object_identifier: ObjectIdentifierThe object being referenced.
Implementations§
Source§impl BACnetDeviceObjectReference
impl BACnetDeviceObjectReference
Sourcepub fn device_identifier_is_device(&self) -> bool
pub fn device_identifier_is_device(&self) -> bool
Whether the device identifier is absent or names a Device object.
The Clause 21 production gives the first member to the Device that holds the object, so an identifier of any other object type can’t make a valid reference. Setters and write paths that take these references refuse one that fails this check.
Trait Implementations§
Source§impl Clone for BACnetDeviceObjectReference
impl Clone for BACnetDeviceObjectReference
Source§impl Debug for BACnetDeviceObjectReference
impl Debug for BACnetDeviceObjectReference
impl Eq for BACnetDeviceObjectReference
Source§impl From<ObjectIdentifier> for BACnetDeviceObjectReference
impl From<ObjectIdentifier> for BACnetDeviceObjectReference
Source§fn from(object_identifier: ObjectIdentifier) -> Self
fn from(object_identifier: ObjectIdentifier) -> Self
A reference to an object in this device: no device identifier.
impl StructuralPartialEq for BACnetDeviceObjectReference
Auto Trait Implementations§
impl Freeze for BACnetDeviceObjectReference
impl RefUnwindSafe for BACnetDeviceObjectReference
impl Send for BACnetDeviceObjectReference
impl Sync for BACnetDeviceObjectReference
impl Unpin for BACnetDeviceObjectReference
impl UnsafeUnpin for BACnetDeviceObjectReference
impl UnwindSafe for BACnetDeviceObjectReference
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