pub struct IdentityRequestContext<'a> {
pub from_key: PublicKey,
pub from_hint: Option<NodeHint>,
pub source_authenticated: bool,
pub has_full_source: bool,
pub channel: Option<ChannelId>,
pub family: PacketFamily,
pub filters: IdentityRequestFilters<'a>,
pub rssi: Option<i16>,
pub snr: Option<Snr>,
}Expand description
Reception context for an incoming Identity Request, handed to the respond policy so it can decide whether — and how — to answer.
The request has already passed the filter gate (its FILTER_* options
select this node) and its source has already been resolved to a key, so the
policy only governs the “do I want to answer this sender?” decision.
Fields§
§from_key: PublicKeyResolved sender key. Always present: an unresolvable source is dropped before the policy runs.
from_hint: Option<NodeHint>Sender hint, when the frame carried one.
source_authenticated: boolWhether the request frame was authenticated (pairwise or channel MIC).
has_full_source: boolWhether the request carried the sender’s full 32-byte key.
channel: Option<ChannelId>The channel the request arrived on, if any (None for plain
broadcast/unicast).
family: PacketFamilyCoarse packet family (Unicast / Broadcast / Multicast / BlindUnicast).
filters: IdentityRequestFilters<'a>The request’s filter/option block, for policies that inspect it further.
rssi: Option<i16>Received signal strength of the request, if measured.
snr: Option<Snr>Signal-to-noise ratio of the request, if measured.