pub enum CommandRisk {
ReadOnly,
Reversible,
Persistent,
ExperimentalWrite,
Firmware,
}Expand description
Safety class assigned to every protocol command.
每条协议命令的安全风险等级。
Variants§
Trait Implementations§
Source§impl Clone for CommandRisk
impl Clone for CommandRisk
Source§fn clone(&self) -> CommandRisk
fn clone(&self) -> CommandRisk
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 CommandRisk
Source§impl Debug for CommandRisk
impl Debug for CommandRisk
Source§impl<'de> Deserialize<'de> for CommandRisk
impl<'de> Deserialize<'de> for CommandRisk
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CommandRisk
Source§impl Ord for CommandRisk
impl Ord for CommandRisk
Source§fn cmp(&self, other: &CommandRisk) -> Ordering
fn cmp(&self, other: &CommandRisk) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CommandRisk
impl PartialEq for CommandRisk
Source§fn eq(&self, other: &CommandRisk) -> bool
fn eq(&self, other: &CommandRisk) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CommandRisk
impl PartialOrd for CommandRisk
Source§impl Serialize for CommandRisk
impl Serialize for CommandRisk
impl StructuralPartialEq for CommandRisk
Auto Trait Implementations§
impl Freeze for CommandRisk
impl RefUnwindSafe for CommandRisk
impl Send for CommandRisk
impl Sync for CommandRisk
impl Unpin for CommandRisk
impl UnsafeUnpin for CommandRisk
impl UnwindSafe for CommandRisk
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