#[repr(i32)]pub enum MandatoryProtocolFeature {
Unspecified = 0,
ImportAuthorityHostWitnessV1 = 1,
}Expand description
Semantic support, independent of package/release version. Missing/unknown mandatory features reject before staging, signatures or durable mutation.
Variants§
Implementations§
Source§impl MandatoryProtocolFeature
impl MandatoryProtocolFeature
Sourcepub const fn is_valid(value: i32) -> bool
pub const fn is_valid(value: i32) -> bool
Returns true if value is a variant of MandatoryProtocolFeature.
Sourcepub fn from_i32(value: i32) -> Option<MandatoryProtocolFeature>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<MandatoryProtocolFeature>
Use the TryFrom<i32> implementation instead
Converts an i32 to a MandatoryProtocolFeature, or None if value is not a valid variant.
Source§impl MandatoryProtocolFeature
impl MandatoryProtocolFeature
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 MandatoryProtocolFeature
impl Clone for MandatoryProtocolFeature
impl Copy for MandatoryProtocolFeature
Source§impl Debug for MandatoryProtocolFeature
impl Debug for MandatoryProtocolFeature
Source§impl Default for MandatoryProtocolFeature
impl Default for MandatoryProtocolFeature
Source§fn default() -> MandatoryProtocolFeature
fn default() -> MandatoryProtocolFeature
Returns the “default value” for a type. Read more
impl Eq for MandatoryProtocolFeature
Source§impl From<MandatoryProtocolFeature> for i32
impl From<MandatoryProtocolFeature> for i32
Source§fn from(value: MandatoryProtocolFeature) -> i32
fn from(value: MandatoryProtocolFeature) -> i32
Converts to this type from the input type.
Source§impl Hash for MandatoryProtocolFeature
impl Hash for MandatoryProtocolFeature
Source§impl Ord for MandatoryProtocolFeature
impl Ord for MandatoryProtocolFeature
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for MandatoryProtocolFeature
impl PartialEq for MandatoryProtocolFeature
Source§impl PartialOrd for MandatoryProtocolFeature
impl PartialOrd for MandatoryProtocolFeature
impl StructuralPartialEq for MandatoryProtocolFeature
Source§impl TryFrom<i32> for MandatoryProtocolFeature
impl TryFrom<i32> for MandatoryProtocolFeature
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<MandatoryProtocolFeature, UnknownEnumValue>
fn try_from(value: i32) -> Result<MandatoryProtocolFeature, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for MandatoryProtocolFeature
impl RefUnwindSafe for MandatoryProtocolFeature
impl Send for MandatoryProtocolFeature
impl Sync for MandatoryProtocolFeature
impl Unpin for MandatoryProtocolFeature
impl UnsafeUnpin for MandatoryProtocolFeature
impl UnwindSafe for MandatoryProtocolFeature
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