pub struct EndpointProtection {
pub level: ProtectionLevel,
}Expand description
Policy-Sicht auf ein Endpoint: welches Protection-Level verlangt/ bietet dieser Writer/Reader.
Fields§
§level: ProtectionLevelVerlangtes/angebotenes Protection-Level.
Implementations§
Source§impl EndpointProtection
impl EndpointProtection
Sourcepub const fn new(level: ProtectionLevel) -> Self
pub const fn new(level: ProtectionLevel) -> Self
Builder.
Sourcepub fn from_info(info: Option<&EndpointSecurityInfo>) -> Self
pub fn from_info(info: Option<&EndpointSecurityInfo>) -> Self
Ableitung aus einem EndpointSecurityInfo:
- Payload-encrypted →
Encrypt - Submessage-encrypted →
Encrypt - Submessage/Payload protected ohne Plugin-Encrypt-Flag →
Sign - Keine Protection-Bits →
None
None als Argument (Legacy-Endpoint) → Self::PLAIN.
Sourcepub fn to_info(self) -> EndpointSecurityInfo
pub fn to_info(self) -> EndpointSecurityInfo
Serialisierung zurueck in EndpointSecurityInfo — fuer
SEDP-Announce unseres eigenen Endpoints.
Trait Implementations§
Source§impl Clone for EndpointProtection
impl Clone for EndpointProtection
Source§fn clone(&self) -> EndpointProtection
fn clone(&self) -> EndpointProtection
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 EndpointProtection
impl Debug for EndpointProtection
Source§impl PartialEq for EndpointProtection
impl PartialEq for EndpointProtection
Source§fn eq(&self, other: &EndpointProtection) -> bool
fn eq(&self, other: &EndpointProtection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for EndpointProtection
impl Eq for EndpointProtection
impl StructuralPartialEq for EndpointProtection
Auto Trait Implementations§
impl Freeze for EndpointProtection
impl RefUnwindSafe for EndpointProtection
impl Send for EndpointProtection
impl Sync for EndpointProtection
impl Unpin for EndpointProtection
impl UnsafeUnpin for EndpointProtection
impl UnwindSafe for EndpointProtection
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