pub struct EndpointProtection {
pub level: ProtectionLevel,
}Expand description
Policy view of an endpoint: which protection level this writer/reader requires/offers.
Fields§
§level: ProtectionLevelRequired/offered 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
Derivation from an EndpointSecurityInfo:
- payload-encrypted →
Encrypt - submessage-encrypted →
Encrypt - submessage/payload protected without the plugin-encrypt flag →
Sign - no protection bits →
None
None as the argument (legacy endpoint) → Self::PLAIN.
Sourcepub fn to_info(self) -> EndpointSecurityInfo
pub fn to_info(self) -> EndpointSecurityInfo
Serialization back into EndpointSecurityInfo — for the
SEDP announce of our own endpoint.
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 moreimpl Copy for EndpointProtection
Source§impl Debug for EndpointProtection
impl Debug for EndpointProtection
impl Eq 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 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