#[non_exhaustive]#[repr(u8)]pub enum ProtocolWarningMode {
Off = 0,
Warn = 1,
}Expand description
Runtime policy for handling protocol warnings.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Off = 0
Do not promote protocol-violation reports based on runtime policy.
Warn = 1
Promote protocol-violation reports to warning level.
Implementations§
Trait Implementations§
Source§impl Clone for ProtocolWarningMode
impl Clone for ProtocolWarningMode
Source§fn clone(&self) -> ProtocolWarningMode
fn clone(&self) -> ProtocolWarningMode
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 ProtocolWarningMode
impl Debug for ProtocolWarningMode
Source§impl PartialEq for ProtocolWarningMode
impl PartialEq for ProtocolWarningMode
Source§fn eq(&self, other: &ProtocolWarningMode) -> bool
fn eq(&self, other: &ProtocolWarningMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ProtocolWarningMode
impl Eq for ProtocolWarningMode
impl StructuralPartialEq for ProtocolWarningMode
Auto Trait Implementations§
impl Freeze for ProtocolWarningMode
impl RefUnwindSafe for ProtocolWarningMode
impl Send for ProtocolWarningMode
impl Sync for ProtocolWarningMode
impl Unpin for ProtocolWarningMode
impl UnsafeUnpin for ProtocolWarningMode
impl UnwindSafe for ProtocolWarningMode
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