Skip to main content

GovernancePolicyEngine

Struct GovernancePolicyEngine 

Source
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

Source

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.

Source

pub fn with_defaults(domain_id: u32, governance: Governance) -> Self

Konstruktor mit v1.4-Default-Suite (AES_128_GCM).

Source

pub fn message_protection_kind(&self) -> ProtectionKind

Aktuelle ProtectionKind aus Governance fuer die Participant- Domain — gleicher Lookup wie crate::SharedSecurityGate::message_protection.

Source

pub fn domain_id(&self) -> u32

Konfigurierte Domain-Id.

Trait Implementations§

Source§

impl Debug for GovernancePolicyEngine

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PolicyEngine for GovernancePolicyEngine

Source§

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

Inbound-Pfad: Paket akzeptieren / droppen / entschluesseln?
Source§

fn accept_peer(&self, _caps: &PeerCapabilities) -> bool

SEDP-Admission: ist dieser Peer (laut Capabilities) grundsaetzlich akzeptabel fuer einen Match?

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.