pub struct StartedRouter<A = Receiver<ReceivedApdu>, C = Receiver<ReceivedNetworkControl>> {
pub router: BACnetRouter,
pub apdus: A,
pub network_control: Option<C>,
}Expand description
A running router and the receivers its RouterOptions asked for.
Fields§
§router: BACnetRouterThe router.
apdus: AAPDUs for local applications: those without a remote destination, or for which this router is the final hop.
network_control: Option<C>The router’s own network-control receiver, when
RouterOptions::network_control_receiver or
RouterOptions::network_control_receiver_with_admission asked for it.
Implementations§
Source§impl<A: LocalApduReceiver, C> StartedRouter<A, C>
impl<A: LocalApduReceiver, C> StartedRouter<A, C>
Sourcepub fn into_application_port(
self,
) -> (BACnetRouter, RouterApplicationPort, Option<C>)
pub fn into_application_port( self, ) -> (BACnetRouter, RouterApplicationPort, Option<C>)
The router, its application entity as a TransportPort fed by
the router’s own local APDU receiver, raw or tracked, and the
network-control receiver, if one was asked for (#1808). See
RouterApplicationPort.
The port reports the smallest NPDU limits of the router’s ports, as they change, and the longest of the router’s MACs on them as its own: a request routed on from any port with the router’s address as its source then fits.
Sourcepub fn into_application_ports(
self,
) -> (BACnetRouter, RouterApplicationPorts, Option<C>)
pub fn into_application_ports( self, ) -> (BACnetRouter, RouterApplicationPorts, Option<C>)
Self::into_application_port, with the entity split between a
client and a server (#2069). See RouterApplicationPorts, whose
invoke-ID tracking needs each stack’s APDU and segment timeouts under
60 seconds.