pub struct ResponseRoute { /* private fields */ }Expand description
Saved response route, independent of the request’s claimed BACnet addresses.
Verified direct ingress requires a matching original-socket capability. Missing or mismatched capability fails closed; other ingress retains normal addressing. Clones do not retain a socket or extend its membership lifetime.
Implementations§
Source§impl ResponseRoute
impl ResponseRoute
Sourcepub fn new(
provenance: TransportProvenance,
direct: Option<DirectResponse>,
) -> Self
pub fn new( provenance: TransportProvenance, direct: Option<DirectResponse>, ) -> Self
Capture immutable ingress provenance and its optional direct capability. A supplied capability is checked against provenance at every send.
Sourcepub fn unverified() -> Self
pub fn unverified() -> Self
Plain, non-direct addressing for locally constructed legacy envelopes.
Sourcepub fn provenance(&self) -> TransportProvenance
pub fn provenance(&self) -> TransportProvenance
Original authentication scope; this never follows a replacement peer.
Sourcepub fn max_apdu_length(
&self,
apdu_limit: u16,
destination: Option<&NpduAddress>,
) -> Result<u16, Error>
pub fn max_apdu_length( &self, apdu_limit: u16, destination: Option<&NpduAddress>, ) -> Result<u16, Error>
Cap an APDU by the original direct peer’s NPDU/BVLC receive limits, including the actual local or routed response NPDU header. Non-direct ingress keeps the supplied APDU cap. Invalid authority/addressing is an error; retirement does not invalidate this immutable sizing snapshot.