pub enum DataLink {
Bip,
Bip6,
Mstp,
Sc,
Ethernet,
Loopback,
}Expand description
A BACnet data link.
Errors use it to say which data link an operation needs and which one an
endpoint actually has, such as
Error::UnsupportedTransport.
Display gives the short name a person would expect in a message.
use bacnet_types::data_link::DataLink;
assert_eq!(DataLink::Bip.to_string(), "BACnet/IP");
assert_eq!(DataLink::Mstp.to_string(), "MS/TP");Variants§
Bip
BACnet/IP over UDP (Annex J).
Bip6
BACnet/IPv6 over UDP (Annex U).
Mstp
MS/TP over RS-485 (Clause 9).
Sc
BACnet Secure Connect over TLS WebSockets (Annex AB).
Ethernet
BACnet over Ethernet LLC frames (Clause 7).
Loopback
An in-process loopback transport, not a wire data link.
Implementations§
Trait Implementations§
impl Copy for DataLink
impl Eq for DataLink
impl StructuralPartialEq for DataLink
Auto Trait Implementations§
impl Freeze for DataLink
impl RefUnwindSafe for DataLink
impl Send for DataLink
impl Sync for DataLink
impl Unpin for DataLink
impl UnsafeUnpin for DataLink
impl UnwindSafe for DataLink
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