#[repr(i32)]pub enum ConflictPolicy {
Unspecified = 0,
LastWriteWins = 1,
HighestPriorityWins = 2,
HighestAuthorityWins = 3,
MergeCompatible = 4,
RejectConflict = 5,
}Expand description
Conflict resolution policy
Variants§
Unspecified = 0
LastWriteWins = 1
Most recent command wins
HighestPriorityWins = 2
Command with highest priority wins
HighestAuthorityWins = 3
Command from highest authority level wins
MergeCompatible = 4
Merge if commands are compatible
RejectConflict = 5
Reject conflicting commands
Implementations§
Source§impl ConflictPolicy
impl ConflictPolicy
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for ConflictPolicy
impl Clone for ConflictPolicy
Source§fn clone(&self) -> ConflictPolicy
fn clone(&self) -> ConflictPolicy
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 ConflictPolicy
impl Debug for ConflictPolicy
Source§impl Default for ConflictPolicy
impl Default for ConflictPolicy
Source§fn default() -> ConflictPolicy
fn default() -> ConflictPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConflictPolicy
impl<'de> Deserialize<'de> for ConflictPolicy
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
Source§impl From<ConflictPolicy> for i32
impl From<ConflictPolicy> for i32
Source§fn from(value: ConflictPolicy) -> i32
fn from(value: ConflictPolicy) -> i32
Converts to this type from the input type.
Source§impl Hash for ConflictPolicy
impl Hash for ConflictPolicy
Source§impl Ord for ConflictPolicy
impl Ord for ConflictPolicy
Source§fn cmp(&self, other: &ConflictPolicy) -> Ordering
fn cmp(&self, other: &ConflictPolicy) -> 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 ConflictPolicy
impl PartialEq for ConflictPolicy
Source§fn eq(&self, other: &ConflictPolicy) -> bool
fn eq(&self, other: &ConflictPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ConflictPolicy
impl PartialOrd for ConflictPolicy
Source§impl Serialize for ConflictPolicy
impl Serialize for ConflictPolicy
Source§impl TryFrom<i32> for ConflictPolicy
impl TryFrom<i32> for ConflictPolicy
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<ConflictPolicy, UnknownEnumValue>
fn try_from(value: i32) -> Result<ConflictPolicy, UnknownEnumValue>
Performs the conversion.
impl Copy for ConflictPolicy
impl Eq for ConflictPolicy
impl StructuralPartialEq for ConflictPolicy
Auto Trait Implementations§
impl Freeze for ConflictPolicy
impl RefUnwindSafe for ConflictPolicy
impl Send for ConflictPolicy
impl Sync for ConflictPolicy
impl Unpin for ConflictPolicy
impl UnsafeUnpin for ConflictPolicy
impl UnwindSafe for ConflictPolicy
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