Enum opcua_server::prelude::MessageSecurityMode
source · pub enum MessageSecurityMode {
Invalid,
None,
Sign,
SignAndEncrypt,
}Expand description
The MessageSecurityMode is an enumeration that specifies what security should be applied to messages exchanges during a Session.
Variants§
Invalid
The MessageSecurityMode is invalid. This value is the default value to avoid an accidental choice of no security is applied. This choice will always be rejected.
None
No security is applied.
Sign
All messages are signed but not encrypted.
SignAndEncrypt
All messages are signed and encrypted.
Trait Implementations§
source§impl BinaryEncoder<MessageSecurityMode> for MessageSecurityMode
impl BinaryEncoder<MessageSecurityMode> for MessageSecurityMode
source§fn byte_len(&self) -> usize
fn byte_len(&self) -> usize
Returns the byte length of the structure. This calculation should be exact and as efficient
as possible. Read more
source§fn encode<S>(&self, stream: &mut S) -> Result<usize, StatusCode>where
S: Write,
fn encode<S>(&self, stream: &mut S) -> Result<usize, StatusCode>where
S: Write,
Encodes the instance to the write stream.
source§fn decode<S>(
stream: &mut S,
_: &DecodingLimits
) -> Result<MessageSecurityMode, StatusCode>where
S: Read,
fn decode<S>(
stream: &mut S,
_: &DecodingLimits
) -> Result<MessageSecurityMode, StatusCode>where
S: Read,
Decodes an instance from the read stream. The decoding limits are restrictions set by the server / client
on the length of strings, arrays etc. If these limits are exceeded the implementation should
return with a
BadDecodingError as soon as possible. Read morefn to_vec(&self) -> Vec<u8, Global> ⓘ
source§impl Clone for MessageSecurityMode
impl Clone for MessageSecurityMode
source§fn clone(&self) -> MessageSecurityMode
fn clone(&self) -> MessageSecurityMode
Returns a copy of the value. Read more
1.0.0 · 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 MessageSecurityMode
impl Debug for MessageSecurityMode
source§impl Display for MessageSecurityMode
impl Display for MessageSecurityMode
source§impl<'a> From<&'a str> for MessageSecurityMode
impl<'a> From<&'a str> for MessageSecurityMode
source§fn from(str: &'a str) -> MessageSecurityMode
fn from(str: &'a str) -> MessageSecurityMode
Converts to this type from the input type.
source§impl PartialEq<MessageSecurityMode> for MessageSecurityMode
impl PartialEq<MessageSecurityMode> for MessageSecurityMode
source§fn eq(&self, other: &MessageSecurityMode) -> bool
fn eq(&self, other: &MessageSecurityMode) -> bool
source§impl PartialOrd<MessageSecurityMode> for MessageSecurityMode
impl PartialOrd<MessageSecurityMode> for MessageSecurityMode
source§fn partial_cmp(&self, other: &MessageSecurityMode) -> Option<Ordering>
fn partial_cmp(&self, other: &MessageSecurityMode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more