pub struct PolicyDecision {
pub protection: ProtectionLevel,
pub suite: Option<SuiteHint>,
pub drop: bool,
}Expand description
Entscheidung der PolicyEngine fuer ein konkretes
Paket/Peer/Interface-Tripel.
Fields§
§protection: ProtectionLevelVerlangtes Schutz-Level.
suite: Option<SuiteHint>Gewuenschte Crypto-Suite. None bei ProtectionLevel::None
oder wenn die Engine dem Plugin die Wahl ueberlaesst.
drop: boolHarter Drop — Paket wird nicht zugestellt, Peer nicht
akzeptiert. Falls true sind protection/suite irrelevant.
Implementations§
Source§impl PolicyDecision
impl PolicyDecision
Sourcepub fn with(protection: ProtectionLevel, suite: Option<SuiteHint>) -> Self
pub fn with(protection: ProtectionLevel, suite: Option<SuiteHint>) -> Self
Baut eine Decision aus Protection + Suite. Bei
ProtectionLevel::None wird suite auf None gezwungen.
Trait Implementations§
Source§impl Clone for PolicyDecision
impl Clone for PolicyDecision
Source§fn clone(&self) -> PolicyDecision
fn clone(&self) -> PolicyDecision
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PolicyDecision
impl Debug for PolicyDecision
Source§impl PartialEq for PolicyDecision
impl PartialEq for PolicyDecision
Source§fn eq(&self, other: &PolicyDecision) -> bool
fn eq(&self, other: &PolicyDecision) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PolicyDecision
impl StructuralPartialEq for PolicyDecision
Auto Trait Implementations§
impl Freeze for PolicyDecision
impl RefUnwindSafe for PolicyDecision
impl Send for PolicyDecision
impl Sync for PolicyDecision
impl Unpin for PolicyDecision
impl UnsafeUnpin for PolicyDecision
impl UnwindSafe for PolicyDecision
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