pub struct RouterPort<T: TransportPort> {
pub transport: T,
pub network_number: u16,
}Expand description
A router port: a transport bound to a specific BACnet network number.
BACnetRouter::start calls
TransportPort::prepare_for_routing on each port’s transport before it
starts it, so an MS/TP port takes and sends extended frames whatever its
MstpConfig says: Clause 9.3 requires them of a routing node. Once the
transport has started, it reads TransportPort::max_npdu, and answers
an NPDU too long for the port with reject reason 4 (#1665).
Fields§
§transport: TThe transport for this port.
network_number: u16The network number assigned to this port.
Auto Trait Implementations§
impl<T> Freeze for RouterPort<T>where
T: Freeze,
impl<T> RefUnwindSafe for RouterPort<T>where
T: RefUnwindSafe,
impl<T> Send for RouterPort<T>
impl<T> Sync for RouterPort<T>
impl<T> Unpin for RouterPort<T>where
T: Unpin,
impl<T> UnsafeUnpin for RouterPort<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for RouterPort<T>where
T: UnwindSafe,
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