pub struct GovernancePolicyEngine { /* private fields */ }Expand description
Governance-XML-getriebene PolicyEngine-Default-Implementation.
Clone ist bewusst NICHT derived: die Governance-struct
selber ist Clone, aber die Engine wird typischerweise als
Arc<dyn PolicyEngine> in mehreren Runtime-Komponenten gehalten —
dann ist ein Arc::clone der richtige Weg, nicht ein Deep-Copy.
Implementations§
Source§impl GovernancePolicyEngine
impl GovernancePolicyEngine
Sourcepub fn new(
domain_id: u32,
governance: Governance,
default_suite: SuiteHint,
) -> Self
pub fn new( domain_id: u32, governance: Governance, default_suite: SuiteHint, ) -> Self
Konstruktor mit explizitem Default-Suite. Fuer v1.4-Parity
passt Self::with_defaults.
Sourcepub fn with_defaults(domain_id: u32, governance: Governance) -> Self
pub fn with_defaults(domain_id: u32, governance: Governance) -> Self
Konstruktor mit v1.4-Default-Suite (AES_128_GCM).
Sourcepub fn message_protection_kind(&self) -> ProtectionKind
pub fn message_protection_kind(&self) -> ProtectionKind
Aktuelle ProtectionKind aus Governance fuer die Participant-
Domain — gleicher Lookup wie crate::SharedSecurityGate::message_protection.
Trait Implementations§
Source§impl Debug for GovernancePolicyEngine
impl Debug for GovernancePolicyEngine
Source§impl PolicyEngine for GovernancePolicyEngine
impl PolicyEngine for GovernancePolicyEngine
Source§fn outbound_decision(&self, ctx: OutboundCtx<'_>) -> PolicyDecision
fn outbound_decision(&self, ctx: OutboundCtx<'_>) -> PolicyDecision
Outbound-Pfad: welches Schutz-Level soll das Wire-Paket haben?
Source§fn inbound_decision(&self, ctx: InboundCtx<'_>) -> PolicyDecision
fn inbound_decision(&self, ctx: InboundCtx<'_>) -> PolicyDecision
Inbound-Pfad: Paket akzeptieren / droppen / entschluesseln?
Source§fn accept_peer(&self, _caps: &PeerCapabilities) -> bool
fn accept_peer(&self, _caps: &PeerCapabilities) -> bool
SEDP-Admission: ist dieser Peer (laut Capabilities)
grundsaetzlich akzeptabel fuer einen Match?
Auto Trait Implementations§
impl Freeze for GovernancePolicyEngine
impl RefUnwindSafe for GovernancePolicyEngine
impl Send for GovernancePolicyEngine
impl Sync for GovernancePolicyEngine
impl Unpin for GovernancePolicyEngine
impl UnsafeUnpin for GovernancePolicyEngine
impl UnwindSafe for GovernancePolicyEngine
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