#[non_exhaustive]pub struct RouteBindPeer {
pub observed_peer: Option<ObservedPeer>,
pub operator_app: Option<OperatorApp>,
pub caller: Option<CallerAttestation>,
pub peer_build: Option<String>,
}Expand description
The route.bind keys carried beside ModuleControlRequest::RouteBind.
Keys are absent unless the target declared the matching capability, and an
absent key is omitted, never null. Decoding ignores every other key, so a
module reads this from the same body it decodes as the bind.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.observed_peer: Option<ObservedPeer>Sent only to a target declaring OBSERVED_PEER_CAPABILITY.
operator_app: Option<OperatorApp>Sent only to a target declaring OPERATOR_APP_CAPABILITY, and only
when the daemon recognised the opening connection as an operator app.
caller: Option<CallerAttestation>Sent only to targets declaring CALLER_ATTESTATION_CAPABILITY. An absent
or incomplete caller is treated as absent; unsafe integers are malformed.
peer_build: Option<String>Sent only to a target declaring PEER_BUILD_CAPABILITY, only when
the opener is reserved:callosum and its build claim was exactly
production. The daemon sends only production, never another value
or null; otherwise the key is absent.
Implementations§
Source§impl RouteBindPeer
impl RouteBindPeer
Sourcepub fn with_observed_peer(self, observed_peer: Option<ObservedPeer>) -> Self
pub fn with_observed_peer(self, observed_peer: Option<ObservedPeer>) -> Self
Set or clear observed_peer.
Sourcepub fn with_operator_app(self, operator_app: Option<OperatorApp>) -> Self
pub fn with_operator_app(self, operator_app: Option<OperatorApp>) -> Self
Set or clear operator_app.
Sourcepub fn with_caller(self, caller: Option<CallerAttestation>) -> Self
pub fn with_caller(self, caller: Option<CallerAttestation>) -> Self
Set or clear the caller for a target declaring caller-attestation/v1.
Sourcepub fn with_peer_build(self, peer_build: Option<String>) -> Self
pub fn with_peer_build(self, peer_build: Option<String>) -> Self
Set or clear peer_build.