pub enum MessageCryptoErrorPolicy {
SendError,
CloseConnection,
SkipMessage,
}Expand description
Policy for handling message encryption/decryption failures on the server side.
Variants§
SendError
Send an error response and continue processing (default).
CloseConnection
Close the connection immediately.
SkipMessage
Skip the message and continue processing (only for decryption failures).
Trait Implementations§
Source§impl Clone for MessageCryptoErrorPolicy
impl Clone for MessageCryptoErrorPolicy
Source§fn clone(&self) -> MessageCryptoErrorPolicy
fn clone(&self) -> MessageCryptoErrorPolicy
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 MessageCryptoErrorPolicy
Source§impl Debug for MessageCryptoErrorPolicy
impl Debug for MessageCryptoErrorPolicy
Source§impl Default for MessageCryptoErrorPolicy
impl Default for MessageCryptoErrorPolicy
impl Eq for MessageCryptoErrorPolicy
Source§impl PartialEq for MessageCryptoErrorPolicy
impl PartialEq for MessageCryptoErrorPolicy
Source§fn eq(&self, other: &MessageCryptoErrorPolicy) -> bool
fn eq(&self, other: &MessageCryptoErrorPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MessageCryptoErrorPolicy
Auto Trait Implementations§
impl Freeze for MessageCryptoErrorPolicy
impl RefUnwindSafe for MessageCryptoErrorPolicy
impl Send for MessageCryptoErrorPolicy
impl Sync for MessageCryptoErrorPolicy
impl Unpin for MessageCryptoErrorPolicy
impl UnsafeUnpin for MessageCryptoErrorPolicy
impl UnwindSafe for MessageCryptoErrorPolicy
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